summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-10 17:09:39 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-11 13:42:49 +1000
commit7868956b0fb50a9d77506f01413612e429f540a3 (patch)
treef9ccbfc2f6b639703f1a3d5aab0fc154ded73c04 /Xi
parentaa2babf11c30be4d289b58212dc330b84efb4053 (diff)
Xi: ProcXIGetSelectedEvents must use WriteToClient for swapped data.
The data is already swapped before, so we just post it to the client as-is, without attempting to swap it again. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xiselectev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c
index 6498d8677..74e444be6 100644
--- a/Xi/xiselectev.c
+++ b/Xi/xiselectev.c
@@ -239,10 +239,7 @@ ProcXIGetSelectedEvents(ClientPtr client)
WriteReplyToClient(client, sizeof(xXIGetSelectedEventsReply), &reply);
if (reply.num_masks)
- {
- WriteSwappedDataToClient(client, reply.length * 4, buffer);
- }
-
+ WriteToClient(client, reply.length * 4, buffer);
xfree(buffer);
return Success;