From 40586cc4f8faa271d62fd84fe98c41debb878984 Mon Sep 17 00:00:00 2001 From: Roman Kapl Date: Thu, 7 Jun 2018 03:31:42 +0200 Subject: [PATCH] Xi: add forgotten byte-swaps for Valuator fields This has caused nonsensical values in xinput output. Signed-off-by: Roman Kapl Signed-off-by: Peter Hutterer --- Xi/xiquerydevice.c | 3 +++ 1 file changed, 3 insertions(+) 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); }