summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2021-03-26 00:09:41 +0200
committerPovilas Kanapickas <povilas@radix.lt>2021-03-30 18:47:04 +0000
commitaeed57d722f2eb978c17fd7e859334d34af38d05 (patch)
treed2f2b77a9bfa782665b3cbe8ec47248acb21e8d6 /xkb
parenta3931ec6f43857aeed7feac5d223d7db6728145e (diff)
downloadxserver-aeed57d722f2eb978c17fd7e859334d34af38d05.tar.gz
xkb: Fix parsing of XkbSA_DeviceValuator action type
The xkb spec defines that the 7th element of the DeviceValuator key action description is "valuator 2 value". This error most likely was accidentally introduced as a copy-paste error in edeb033f29ae2d52e86c543ccbf22fb7ae1fdb7f. Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkmread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkmread.c b/xkb/xkmread.c
index 1666e3216..842887c09 100644
--- a/xkb/xkmread.c
+++ b/xkb/xkmread.c
@@ -532,7 +532,7 @@ ReadXkmCompatMap(FILE * file, XkbDescPtr xkb, XkbChangesPtr changes)
act->devval.v1_value = wire.actionData[3];
act->devval.v2_what = wire.actionData[4];
act->devval.v2_ndx = wire.actionData[5];
- act->devval.v2_what = wire.actionData[6];
+ act->devval.v2_value = wire.actionData[6];
break;
case XkbSA_XFree86Private: