diff options
Diffstat (limited to 'xorg-server/Xi/xigrabdev.c')
-rw-r--r-- | xorg-server/Xi/xigrabdev.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/xorg-server/Xi/xigrabdev.c b/xorg-server/Xi/xigrabdev.c index 63d95bc1c..086e275d8 100644 --- a/xorg-server/Xi/xigrabdev.c +++ b/xorg-server/Xi/xigrabdev.c @@ -115,13 +115,12 @@ ProcXIGrabDevice(ClientPtr client) if (ret != Success) return ret; - rep = (xXIGrabDeviceReply) { - .repType = X_Reply, - .RepType = X_XIGrabDevice, - .sequenceNumber = client->sequence, - .length = 0, - .status = status - }; + + rep.repType = X_Reply; + rep.RepType = X_XIGrabDevice; + rep.sequenceNumber = client->sequence; + rep.length = 0; + rep.status = status; WriteReplyToClient(client, sizeof(rep), &rep); return ret; |