mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
Xi: fix swapping for XIWarpPointer and XIChangeCursor requests.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -60,6 +60,9 @@ SProcXIChangeCursor(ClientPtr client)
|
||||
|
||||
REQUEST(xXIChangeCursorReq);
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->win, n);
|
||||
swapl(&stuff->cursor, n);
|
||||
swaps(&stuff->deviceid, n);
|
||||
REQUEST_SIZE_MATCH(xXIChangeCursorReq);
|
||||
return (ProcXIChangeCursor(client));
|
||||
}
|
||||
|
||||
@@ -60,6 +60,15 @@ SProcXIWarpPointer(ClientPtr client)
|
||||
|
||||
REQUEST(xXIWarpPointerReq);
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->src_win, n);
|
||||
swapl(&stuff->dst_win, n);
|
||||
swaps(&stuff->src_x, n);
|
||||
swaps(&stuff->src_y, n);
|
||||
swaps(&stuff->src_width, n);
|
||||
swaps(&stuff->src_height, n);
|
||||
swaps(&stuff->dst_x, n);
|
||||
swaps(&stuff->dst_y, n);
|
||||
swaps(&stuff->deviceid, n);
|
||||
return (ProcXIWarpPointer(client));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user