[clutter/wip/evdev-tablet-support: 70/70] evdev: Avoid updating seat pointer position on tablet events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/evdev-tablet-support: 70/70] evdev: Avoid updating seat pointer position on tablet events
- Date: Mon, 25 Jan 2016 22:58:47 +0000 (UTC)
commit 8936534891d74d33d7b7fbc6d43fcad29184a48b
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 0554f2c..01d1498 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -447,8 +447,11 @@ notify_absolute_motion (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;
+ }
queue_event (event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]