Xi: Swapping 32 bit keycodes requires swapl, not swaps.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
918923e285
commit
9974249980
|
@ -284,7 +284,7 @@ SwapKeyInfo(DeviceIntPtr dev, xXIKeyInfo* info)
|
||||||
swaps(&info->length, n);
|
swaps(&info->length, n);
|
||||||
|
|
||||||
for (i = 0, key = (uint32_t*)&info[1]; i < info->num_keycodes; i++, key++)
|
for (i = 0, key = (uint32_t*)&info[1]; i < info->num_keycodes; i++, key++)
|
||||||
swaps(key, n);
|
swapl(key, n);
|
||||||
|
|
||||||
swaps(&info->num_keycodes, n);
|
swaps(&info->num_keycodes, n);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue