[clutter/wip/evdev-tablet-support: 24/25] evdev: Avoid updating seat pointer position on tablet events



commit f94d3222b8d46c8cf5797247beeb296b59e22ad5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 17 16:56:59 2015 +0200

    evdev: Avoid updating seat pointer position on tablet events

 clutter/evdev/clutter-device-manager-evdev.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index bebe71b..9d7f2b4 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]