From 4c6dae0bae4cc5dd7511288bae9f1da87776b267 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 17 Jun 2015 16:56:59 +0200 Subject: [PATCH] evdev: Avoid updating seat pointer position on tablet events --- clutter/clutter/evdev/clutter-device-manager-evdev.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c b/clutter/clutter/evdev/clutter-device-manager-evdev.c index 3645d287b..2ffceb9b2 100644 --- a/clutter/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c @@ -487,8 +487,11 @@ new_absolute_motion_event (ClutterInputDevice *input_device, _clutter_input_device_set_stage (seat->core_pointer, stage); - seat->pointer_x = x; - seat->pointer_y = y; + if (clutter_input_device_get_device_type (input_device) != CLUTTER_TABLET_DEVICE) + { + seat->pointer_x = x; + seat->pointer_y = y; + } return event; }