Xi: fix swapping for XIWarpPointer and XIChangeCursor requests.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-08-21 12:15:54 +10:00
parent 990d204ef8
commit 5e96945cf5
2 changed files with 12 additions and 0 deletions

View File

@ -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));
}

View File

@ -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));
}