]> Pileus Git - ~andy/gtk/commitdiff
Block extended events to windows that didn't select them.
authorCarlos Garnacho <carlos@gnome.org>
Mon, 21 Sep 2009 00:24:32 +0000 (02:24 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 21 Sep 2009 18:04:22 +0000 (20:04 +0200)
Now XSelectExtensionEvent() is called on the native window, so there
may be virtual windows inside that shouldn't receive extended events.

https://bugzilla.gnome.org/show_bug.cgi?id=588649

gdk/x11/gdkinput-xfree.c

index 10fd33d919d8aa15e533b490c6a37cc935cac7ca..24a87f459feadda27799e1eb9209058180dffc1e 100644 (file)
@@ -272,6 +272,7 @@ _gdk_input_other_event (GdkEvent *event,
     return FALSE;
 
   if (gdkdev->info.mode == GDK_MODE_DISABLED ||
+      priv->extension_events == 0 ||
       !(gdkdev->info.has_cursor || (priv->extension_events & GDK_ALL_DEVICES_MASK)))
     return FALSE;