[PATCH xserver 2/2] Xi: add forgotten byte-swaps for Valuator fields
Roman Kapl
code at rkapl.cz
Thu Jun 7 01:31:42 UTC 2018
This has caused nonsensical values in xinput output.
Signed-off-by: Roman Kapl <code at rkapl.cz>
---
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);
}
--
2.17.1
More information about the xorg-devel
mailing list