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:
Richard Hult 2007-05-28 20:55:26 +00:00 committed by Richard Hult
parent 93948cdb4a
commit d36c24a8b9
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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;