aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/xigrabdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/xigrabdev.c')
-rw-r--r--xorg-server/Xi/xigrabdev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/Xi/xigrabdev.c b/xorg-server/Xi/xigrabdev.c
index 8d2cf0bed..a4344be4a 100644
--- a/xorg-server/Xi/xigrabdev.c
+++ b/xorg-server/Xi/xigrabdev.c
@@ -104,10 +104,11 @@ ProcXIGrabDevice(ClientPtr client)
if (ret != Success)
return ret;
+
rep.repType = X_Reply;
rep.RepType = X_XIGrabDevice;
- rep.length = 0;
rep.sequenceNumber = client->sequence;
+ rep.length = 0;
rep.status = status;
WriteReplyToClient(client, sizeof(rep), &rep);
@@ -156,5 +157,5 @@ SRepXIGrabDevice(ClientPtr client, int size, xXIGrabDeviceReply * rep)
{
swaps(&rep->sequenceNumber);
swapl(&rep->length);
- WriteToClient(client, size, (char *) rep);
+ WriteToClient(client, size, rep);
}