[PATCH libinput 07/13] tablet: move the axis transforms to the end

Peter Hutterer peter.hutterer at who-t.net
Thu Mar 9 11:06:51 UTC 2017


No functional changes, part of the grouping of tablet axis manipulation vs.
processing of that manipulated state.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-tablet.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index dc8bede..0b168ac 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -423,9 +423,6 @@ tablet_handle_xy(struct tablet_dispatch *tablet,
 	}
 	point.y = tablet->axes.point.y;
 
-	evdev_transform_absolute(device, &point);
-	evdev_transform_relative(device, &delta);
-
 	*delta_out = delta;
 	*point_out = point;
 }
@@ -619,6 +616,9 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
 
 	axes.wheel = tablet_handle_wheel(tablet, device, &axes.wheel_discrete);
 
+	evdev_transform_absolute(device, &axes.point);
+	evdev_transform_relative(device, &delta);
+
 	axes.delta = tool_process_delta(tool, device, &delta, time);
 
 	*axes_out = axes;
-- 
2.9.3



More information about the wayland-devel mailing list