From f8aa49b619ae37ca28a819fd13c3f35030d4c020 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 7 Mar 2017 13:17:43 +1000 Subject: [PATCH] tablet: move delta processing down 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 Acked-by: Ping Cheng --- 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 ec1c822f..dc8bede8 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;