summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2022-02-14 13:49:31 -0800
committerPeter Hutterer <peter.hutterer@who-t.net>2022-02-15 09:37:06 +1000
commit985392cf38b337164d6d957eb4599dcbca519763 (patch)
treeacb43f17128e9fa786cc1ee61a0a065f9464104f
parentc8e597aa5436835cab9eb9819cda402e03264104 (diff)
downloadxf86-input-wacom-985392cf38b337164d6d957eb4599dcbca519763.tar.gz
Correct typo in calculation of relative-mode non-pad RING2 values
The current value needs to be read from the RING2 axis, not the plain RING axis. Fixes: 58a931bc21d1 ("Abstract the event interface to pass a struct with axis data around") Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r--src/wcmCommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index cede157..6e246fd 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -769,7 +769,7 @@ wcmSendNonPadEvents(WacomDevicePtr priv, const WacomDeviceState *ds,
if (wcmAxisGet(axes, WACOM_AXIS_RING, &val))
wcmAxisSet(axes, WACOM_AXIS_RING, val - priv->oldState.abswheel);
val = 0;
- if (wcmAxisGet(axes, WACOM_AXIS_RING, &val))
+ if (wcmAxisGet(axes, WACOM_AXIS_RING2, &val))
wcmAxisSet(axes, WACOM_AXIS_RING2, val - priv->oldState.abswheel2);
}