summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-01-22 14:22:12 +1000
committerMarge Bot <emma+marge@anholt.net>2024-10-11 00:18:05 +0000
commit111dc7058891bd01b117f3984cf5ac701011e053 (patch)
tree56f83f4ba290caac8d7e50da23b7b04aa23ccbb3
parent408432fbd0f51d2404bfcfc60f20de8bac1f6178 (diff)
dix: fix valuator copy/paste error in the DeviceStateNotify event
Fixes 219c54b8a3337456ce5270ded6a67bcde53553d5 (cherry picked from commit 133e0d651c5d12bf01999d6289e84e224ba77adc) Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1717>
-rw-r--r--dix/enterleave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dix/enterleave.c b/dix/enterleave.c
index 81348148d..27258c2c2 100644
--- a/dix/enterleave.c
+++ b/dix/enterleave.c
@@ -619,11 +619,11 @@ FixDeviceValuator(DeviceIntPtr dev, deviceValuator * ev, ValuatorClassPtr v,
ev->first_valuator = first;
switch (ev->num_valuators) {
case 6:
- ev->valuator2 = v->axisVal[first + 5];
+ ev->valuator5 = v->axisVal[first + 5];
case 5:
- ev->valuator2 = v->axisVal[first + 4];
+ ev->valuator4 = v->axisVal[first + 4];
case 4:
- ev->valuator2 = v->axisVal[first + 3];
+ ev->valuator3 = v->axisVal[first + 3];
case 3:
ev->valuator2 = v->axisVal[first + 2];
case 2: