summaryrefslogtreecommitdiff
path: root/Xi/xigrabdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/xigrabdev.c')
-rw-r--r--Xi/xigrabdev.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/Xi/xigrabdev.c b/Xi/xigrabdev.c
index 095fcfa63..09186e84f 100644
--- a/Xi/xigrabdev.c
+++ b/Xi/xigrabdev.c
@@ -104,11 +104,13 @@ ProcXIGrabDevice(ClientPtr client)
if (ret != Success)
return ret;
- rep.repType = X_Reply;
- rep.RepType = X_XIGrabDevice;
- rep.length = 0;
- rep.sequenceNumber = client->sequence;
- rep.status = status;
+ rep = (xXIGrabDeviceReply) {
+ .repType = X_Reply,
+ .RepType = X_XIGrabDevice,
+ .sequenceNumber = client->sequence,
+ .length = 0,
+ .status = status
+ };
WriteReplyToClient(client, sizeof(rep), &rep);
return ret;