CursorInvoker: check if event.mode is Gdk.CrossingMode.NORMAL to trigger a mouse leave
Like in the WidgetInvoker we check now first if the leave event has the mode Gdk.CrossingMode.NORMAL, only then we trigger a mouse leave to popdown the Palette. This stops the Palette to appear/disappear in a loop. Signed-off-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
parent
447cfc2df1
commit
289787e8c6
@ -1106,7 +1106,8 @@ class CursorInvoker(Invoker):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def __leave_notify_event_cb(self, button, event):
|
def __leave_notify_event_cb(self, button, event):
|
||||||
self.notify_mouse_leave()
|
if event.mode == Gdk.CrossingMode.NORMAL:
|
||||||
|
self.notify_mouse_leave()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def __button_release_event_cb(self, button, event):
|
def __button_release_event_cb(self, button, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user