Xi: Swapping 32 bit keycodes requires swapl, not swaps.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-06-09 13:02:52 +10:00
parent 918923e285
commit 9974249980

View File

@ -284,7 +284,7 @@ SwapKeyInfo(DeviceIntPtr dev, xXIKeyInfo* info)
swaps(&info->length, n);
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);
}