diff options
author | Jason Gerecke <jason.gerecke@wacom.com> | 2022-02-14 13:49:31 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-15 09:37:06 +1000 |
commit | 985392cf38b337164d6d957eb4599dcbca519763 (patch) | |
tree | acb43f17128e9fa786cc1ee61a0a065f9464104f /src | |
parent | c8e597aa5436835cab9eb9819cda402e03264104 (diff) | |
download | xf86-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/wcmCommon.c | 2 |
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); } |