Check release mouse postion in CursorInvoker
This affect when a palette will be opened, by example in the BuddyIcon in the Sugar home.
This commit is contained in:
parent
a19cf9ed27
commit
a8e75af790
@ -1334,6 +1334,11 @@ class CursorInvoker(Invoker):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def __button_release_event_cb(self, button, event):
|
def __button_release_event_cb(self, button, event):
|
||||||
|
# check if the release is done outside of the parent widget
|
||||||
|
alloc = self._item.get_allocation()
|
||||||
|
if not (0 < event.x < alloc.width and 0 < event.y < alloc.height):
|
||||||
|
return False
|
||||||
|
|
||||||
if self._long_pressed_recognized:
|
if self._long_pressed_recognized:
|
||||||
self._long_pressed_recognized = False
|
self._long_pressed_recognized = False
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user