mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Fix typo, we need both press and release in the mask to trigger implicit
2007-05-28 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo, we need both press and release in the mask to trigger implicit grabs. svn path=/trunk/; revision=17970
This commit is contained in:
parent
93948cdb4a
commit
d36c24a8b9
@ -1,3 +1,9 @@
|
||||
2007-05-28 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
|
||||
we need both press and release in the mask to trigger implicit
|
||||
grabs.
|
||||
|
||||
2007-05-28 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
|
||||
|
@ -1208,7 +1208,7 @@ gdk_event_translate (NSEvent *nsevent)
|
||||
* in its mask, like X (and make it owner_events since that's what
|
||||
* implicit grabs are like).
|
||||
*/
|
||||
event_mask = (GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_RELEASE_MASK);
|
||||
event_mask = (GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
|
||||
if (!_gdk_quartz_pointer_grab_window &&
|
||||
(GDK_WINDOW_OBJECT (window)->event_mask & event_mask) == event_mask)
|
||||
{
|
||||
@ -1231,8 +1231,7 @@ gdk_event_translate (NSEvent *nsevent)
|
||||
append_event (event);
|
||||
|
||||
/* Ungrab implicit grab */
|
||||
if (_gdk_quartz_pointer_grab_window &&
|
||||
pointer_grab_implicit)
|
||||
if (_gdk_quartz_pointer_grab_window && pointer_grab_implicit)
|
||||
pointer_ungrab_internal (TRUE);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user