summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-06-27 21:06:33 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-06-27 21:06:33 +0000
commitb2343762b19efb428b3fb47f0a7b66a41c785cba (patch)
tree2fe76ba6e85d14ee1f04633b7a5058da4ba69a3d /gdk/gdkevents.h
parentf49eab1248fb7bfebd295b1ecd07e5019ee8fcac (diff)
downloadgtk+-b2343762b19efb428b3fb47f0a7b66a41c785cba.tar.gz
Ignore GrabBroken events which are caused by overgrabbing inside the
2005-06-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore GrabBroken events which are caused by overgrabbing inside the application; menus rely on these for their operation. * gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a grab_window field. * gdk/win32/gdkevents-win32.c (gdk_event_translate): Set grab_window to NULL when generating GrabBroken events for WM_KILLFOCUS messages. * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap) (_gdk_xgrab_check_destroy): Set grab_window to NULL when generating GrabBroken events when the grab window becomes unviewable or is destroyed. * gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab): Generate GrabBroken events when overriding a grab inside the application. In this case, set grab_window to the new grab_window.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r--gdk/gdkevents.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 797bee7460..bf4db6ead1 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -436,6 +436,7 @@ struct _GdkEventGrabBroken {
GdkWindow *window;
gint8 send_event;
gboolean keyboard;
+ GdkWindow *grab_window;
};
/* Event types for DND */