diff options
author | Roman Kapl <code@rkapl.cz> | 2018-06-07 03:31:42 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-06-08 11:14:37 +1000 |
commit | 40586cc4f8faa271d62fd84fe98c41debb878984 (patch) | |
tree | 5377b601abaf5e98126d3275b40f3f050f11f918 /Xi | |
parent | cefbc6a9356e5c6cf935b61557efa897762defae (diff) |
Xi: add forgotten byte-swaps for Valuator fields
This has caused nonsensical values in xinput output.
Signed-off-by: Roman Kapl <code@rkapl.cz>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/xiquerydevice.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/xiquerydevice.c b/Xi/xiquerydevice.c index 5f5a5f82f..fbb51fe81 100644 --- a/Xi/xiquerydevice.c +++ b/Xi/xiquerydevice.c @@ -383,6 +383,9 @@ SwapValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo * info) swapl(&info->min.frac); swapl(&info->max.integral); swapl(&info->max.frac); + swapl(&info->value.integral); + swapl(&info->value.frac); + swapl(&info->resolution); swaps(&info->number); swaps(&info->sourceid); } |