[gtk+/xi2: 1201/1239] GdkWindow: Only take into account master/enabled devices for crossing events blocking.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 1201/1239] GdkWindow: Only take into account master/enabled devices for crossing events blocking.
- Date: Tue, 29 Sep 2009 10:58:44 +0000 (UTC)
commit 6b14f5deefd97119f870e6a42a4eaec9a160fe8e
Author: Carlos Garnacho <carlos gnome org>
Date: Sun Sep 20 16:53:37 2009 +0200
GdkWindow: Only take into account master/enabled devices for crossing events blocking.
slave/floating devices shouldn't be affected by supports_multidevice, as
applications need to enable them explicitly and independently to
gdk_window_set_supports_multidevice().
gdk/gdkwindow.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index fecd813..5a0936f 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9203,7 +9203,9 @@ send_crossing_event (GdkDisplay *display,
block_event = TRUE;
}
- if (!g_list_find (window->devices_inside, device))
+ if (gdk_device_get_device_type == GDK_DEVICE_TYPE_MASTER &&
+ device->mode != GDK_MODE_DISABLED &&
+ !g_list_find (window->devices_inside, device))
window->devices_inside = g_list_prepend (window->devices_inside, device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]