aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/xisetdevfocus.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/xisetdevfocus.c')
-rw-r--r--xorg-server/Xi/xisetdevfocus.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/xorg-server/Xi/xisetdevfocus.c b/xorg-server/Xi/xisetdevfocus.c
index 96a9a16e4..f3584d567 100644
--- a/xorg-server/Xi/xisetdevfocus.c
+++ b/xorg-server/Xi/xisetdevfocus.c
@@ -101,12 +101,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;