Block extended events to windows that didn't select them.

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
This commit is contained in:
Carlos Garnacho 2009-09-21 02:24:32 +02:00 committed by Alexander Larsson
parent 13c258f891
commit d37268c60f

View 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;