[gtk+] Always select all XInput motion events
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Always select all XInput motion events
- Date: Tue, 29 Sep 2009 12:46:59 +0000 (UTC)
commit 51f2a99096958e1eeaef82a13240d28a40e5db53
Author: Thomas Jaeger <ThJaeger gmail com>
Date: Tue Sep 29 02:12:27 2009 -0400
Always select all XInput motion events
Signed-off-by: Thomas Jaeger <ThJaeger gmail com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
gdk/x11/gdkinput-x11.c | 44 ++++----------------------------------------
1 files changed, 4 insertions(+), 40 deletions(-)
---
diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c
index 73ce4cc..5f1e3df 100644
--- a/gdk/x11/gdkinput-x11.c
+++ b/gdk/x11/gdkinput-x11.c
@@ -266,49 +266,13 @@ _gdk_input_common_find_events (GdkDevicePrivate *gdkdev,
if (class != 0)
classes[i++] = class;
}
- if (mask & GDK_POINTER_MOTION_MASK)
+ if (mask & (GDK_POINTER_MOTION_MASK |
+ GDK_BUTTON1_MOTION_MASK | GDK_BUTTON2_MOTION_MASK |
+ GDK_BUTTON3_MOTION_MASK | GDK_BUTTON_MOTION_MASK))
{
- DeviceMotionNotify (gdkdev->xdevice, gdkdev->motionnotify_type, class);
+ DeviceMotionNotify (gdkdev->xdevice, gdkdev->motionnotify_type, class);
if (class != 0)
classes[i++] = class;
- }
- else
- if (mask & (GDK_BUTTON1_MOTION_MASK | GDK_BUTTON2_MOTION_MASK |
- GDK_BUTTON3_MOTION_MASK | GDK_BUTTON_MOTION_MASK |
- GDK_POINTER_MOTION_HINT_MASK))
- {
- /* Make sure gdkdev->motionnotify_type is set */
- DeviceMotionNotify (gdkdev->xdevice, gdkdev->motionnotify_type, class);
- }
- if (mask & GDK_BUTTON1_MOTION_MASK)
- {
- DeviceButton1Motion (gdkdev->xdevice, 0, class);
- if (class != 0)
- classes[i++] = class;
- }
- if (mask & GDK_BUTTON2_MOTION_MASK)
- {
- DeviceButton2Motion (gdkdev->xdevice, 0, class);
- if (class != 0)
- classes[i++] = class;
- }
- if (mask & GDK_BUTTON3_MOTION_MASK)
- {
- DeviceButton3Motion (gdkdev->xdevice, 0, class);
- if (class != 0)
- classes[i++] = class;
- }
- if (mask & GDK_BUTTON_MOTION_MASK)
- {
- DeviceButtonMotion (gdkdev->xdevice, 0, class);
- if (class != 0)
- classes[i++] = class;
- }
- if (mask & GDK_POINTER_MOTION_HINT_MASK)
- {
- /* We'll get into trouble if the macros change, but at least we'll
- know about it, and we avoid warnings now */
- DevicePointerMotionHint (gdkdev->xdevice, 0, class);
if (class != 0)
classes[i++] = class;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]