diff options
Diffstat (limited to 'xorg-server/Xi/xisetdevfocus.c')
-rw-r--r-- | xorg-server/Xi/xisetdevfocus.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xorg-server/Xi/xisetdevfocus.c b/xorg-server/Xi/xisetdevfocus.c index 372ec248a..aec822c6b 100644 --- a/xorg-server/Xi/xisetdevfocus.c +++ b/xorg-server/Xi/xisetdevfocus.c @@ -97,12 +97,11 @@ ProcXIGetFocus(ClientPtr client) if (!dev->focus) return BadDevice; - rep = (xXIGetFocusReply) { - .repType = X_Reply, - .RepType = X_XIGetFocus, - .sequenceNumber = client->sequence, - .length = 0 - }; + + rep.repType = X_Reply; + rep.RepType = X_XIGetFocus; + rep.sequenceNumber = client->sequence; + rep.length = 0; if (dev->focus->win == NoneWin) rep.focus = None; |