[gtk+] Block extended events to windows that didn't select them.
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Block extended events to windows that didn't select them.
- Date: Mon, 21 Sep 2009 18:07:48 +0000 (UTC)
commit d37268c60f6d84d69e669b477209104b204afab1
Author: Carlos Garnacho <carlos gnome org>
Date: Mon Sep 21 02:24:32 2009 +0200
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
gdk/x11/gdkinput-xfree.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkinput-xfree.c b/gdk/x11/gdkinput-xfree.c
index 10fd33d..24a87f4 100644
--- a/gdk/x11/gdkinput-xfree.c
+++ b/gdk/x11/gdkinput-xfree.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]