summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-21 12:15:54 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-25 10:23:58 +1000
commit5e96945cf54136afdb80cc17f67611251d59205d (patch)
tree09c7d6719700470bb7eab0332360c0409b0c0d14 /Xi
parent990d204ef8074665763ad129d0b015b7ab3ae9ef (diff)
Xi: fix swapping for XIWarpPointer and XIChangeCursor requests.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xichangecursor.c3
-rw-r--r--Xi/xiwarppointer.c9
2 files changed, 12 insertions, 0 deletions
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));
}