No functional changes, this is just to group the calls that modify tablet axis
state together and move the bits that rely on this state (but don't modify it)
to the bottom.

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/evdev-tablet.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index ec1c822..dc8bede 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -598,7 +598,6 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
        axes.distance = tablet_handle_distance(tablet, device);
        axes.slider = tablet_handle_slider(tablet, device);
        axes.tilt = tablet_handle_tilt(tablet, device);
-       axes.delta = tool_process_delta(tool, device, &delta, time);
 
        /* We must check ROTATION_Z after TILT_X/Y so that the tilt axes are
         * already normalized and set if we have the mouse/lens tool */
@@ -620,6 +619,8 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
 
        axes.wheel = tablet_handle_wheel(tablet, device, &axes.wheel_discrete);
 
+       axes.delta = tool_process_delta(tool, device, &delta, time);
+
        *axes_out = axes;
 
        rc = true;
-- 
2.9.3

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to