summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-01-23 15:05:44 +0100
committerAlexander Larsson <alex@localhost.localdomain>2009-04-02 10:15:26 +0200
commite60af9d3157486fd5ca671ae63200de5024b9105 (patch)
tree964c0806d3ac43f8bdfd43508b0ec97ddfc99267 /gdk/gdkdisplay.h
parentc0ad534d818881dc044e4a621dffe602ed186e80 (diff)
downloadgtk+-e60af9d3157486fd5ca671ae63200de5024b9105.tar.gz
Move keyboard grab info to common code
This is the first stage in tracking keyboard grabs in the common code. This lets us handle destroying or unmapping virtual window with a keyboard grab.
Diffstat (limited to 'gdk/gdkdisplay.h')
-rw-r--r--gdk/gdkdisplay.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index ce0f1da28a..4e1e7a325d 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -58,6 +58,17 @@ typedef struct
GdkWindow *grab_one_pointer_release_event;
} GdkPointerGrabInfo;
+/* Tracks information about the keyboard grab on this display */
+typedef struct
+{
+ GdkWindow *window;
+ GdkWindow *native_window;
+ gulong serial;
+ gboolean owner_events;
+ guint32 time;
+} GdkKeyboardGrabInfo;
+
+
/* Tracks information about which window and position the pointer last was in.
* This is useful when we need to synthesize events later.
* Note that we track toplevel_under_pointer using enter/leave events,
@@ -102,6 +113,7 @@ struct _GdkDisplay
gint button_y[2];
GdkPointerGrabInfo pointer_grab;
+ GdkKeyboardGrabInfo keyboard_grab;
GdkPointerWindowInfo pointer_info;
};