Ignore events and break any grabs while the window is being dragged.

2007-06-16  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c: (gdk_event_translate): Ignore
	events and break any grabs while the window is being dragged.

svn path=/trunk/; revision=18165
This commit is contained in:
Richard Hult 2007-06-16 21:39:42 +00:00 committed by Richard Hult
parent 526fecc2f9
commit e206f6dd3a
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-06-16 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c: (gdk_event_translate): Ignore
events and break any grabs while the window is being dragged.
2007-06-16 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_transient_for):

View File

@ -1503,6 +1503,16 @@ gdk_event_translate (NSEvent *nsevent)
if (!nswindow || ![[nswindow contentView] isKindOfClass:[GdkQuartzView class]])
return FALSE;
/* Ignore events and break grabs while the window is being
* dragged. This is a workaround for the window getting events for
* the window title.
*/
if ([(GdkQuartzWindow *)nswindow isInMove])
{
break_all_grabs ();
return FALSE;
}
/* Apply any global filters. */
if (_gdk_default_filters)
{