Xi: fix swapping for XIWarpPointer and XIChangeCursor requests.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
990d204ef8
commit
5e96945cf5
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user