mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Always select all XInput motion events
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=588649
This commit is contained in:
parent
acdecb6aa4
commit
51f2a99096
@ -266,49 +266,13 @@ _gdk_input_common_find_events (GdkDevicePrivate *gdkdev,
|
|||||||
if (class != 0)
|
if (class != 0)
|
||||||
classes[i++] = class;
|
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)
|
if (class != 0)
|
||||||
classes[i++] = class;
|
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)
|
if (class != 0)
|
||||||
classes[i++] = class;
|
classes[i++] = class;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user