mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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:
parent
526fecc2f9
commit
e206f6dd3a
@ -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):
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user