summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkinput.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-01-16 14:01:34 +0100
committerAlexander Larsson <alex@localhost.localdomain>2009-04-02 10:15:18 +0200
commit82b181e64362ef9be4af042165eb43e61b933b50 (patch)
treec5c4f0c1dfdfc84573a4df5990318b5b5403b539 /gdk/x11/gdkinput.c
parent283160c712c365b0026e2e2f5ce5c8726fbf9c65 (diff)
downloadgtk+-82b181e64362ef9be4af042165eb43e61b933b50.tar.gz
Force native windows for all windows used with input events
Diffstat (limited to 'gdk/x11/gdkinput.c')
-rw-r--r--gdk/x11/gdkinput.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/x11/gdkinput.c b/gdk/x11/gdkinput.c
index 87fe45cc04..95a301d24d 100644
--- a/gdk/x11/gdkinput.c
+++ b/gdk/x11/gdkinput.c
@@ -324,6 +324,11 @@ _gdk_input_window_find(GdkWindow *window)
GList *tmp_list;
GdkDisplayX11 *display_x11 = GDK_DISPLAY_X11 (GDK_WINDOW_DISPLAY (window));
+ /* Ensure we have a native window, or the input stuff won't work.
+ Its possible we could emulate this also, but at least this should make
+ it work. */
+ gdk_window_set_has_native (window, TRUE);
+
for (tmp_list=display_x11->input_windows; tmp_list; tmp_list=tmp_list->next)
if (((GdkInputWindow *)(tmp_list->data))->window == window)
return (GdkInputWindow *)(tmp_list->data);