mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 12:50:04 +01:00
Input: Swap flags in DeviceEvents
Swap flags for different-endian clients when delivering XI2 DeviceEvents. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
f3480286ae
commit
e1aed88be9
1 changed files with 1 additions and 0 deletions
|
|
@ -757,6 +757,7 @@ static void SDeviceEvent(xXIDeviceEvent *from, xXIDeviceEvent *to)
|
|||
swapl(&to->mods.latched_mods, n);
|
||||
swapl(&to->mods.locked_mods, n);
|
||||
swapl(&to->mods.effective_mods, n);
|
||||
swapl(&to->flags, n);
|
||||
|
||||
ptr = (char*)(&to[1]);
|
||||
ptr += from->buttons_len * 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue