From 5e96945cf54136afdb80cc17f67611251d59205d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 21 Aug 2009 12:15:54 +1000 Subject: [PATCH] Xi: fix swapping for XIWarpPointer and XIChangeCursor requests. Signed-off-by: Peter Hutterer --- Xi/xichangecursor.c | 3 +++ Xi/xiwarppointer.c | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/Xi/xichangecursor.c b/Xi/xichangecursor.c index ea5bdeb93..f071e8406 100644 --- a/Xi/xichangecursor.c +++ b/Xi/xichangecursor.c @@ -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)); } diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c index bf361dbe4..bb2521c43 100644 --- a/Xi/xiwarppointer.c +++ b/Xi/xiwarppointer.c @@ -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)); }