aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/getfocus.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-02-11 22:01:11 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 00:58:46 +0100
commit41a0ba729fb67efdc5f7bd50f73f145cf5d8a153 (patch)
tree4000aa2277bf5ae33598fb0acee7ad415f73cfc1 /nx-X11/programs/Xserver/Xi/getfocus.c
parent5bfafee5087bcbc37b7f8db246b20d7a4bba5731 (diff)
downloadnx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.gz
nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.tar.bz2
nx-libs-41a0ba729fb67efdc5f7bd50f73f145cf5d8a153.zip
Xi: reformat code, ansify
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/getfocus.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/getfocus.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/Xi/getfocus.c b/nx-X11/programs/Xserver/Xi/getfocus.c
index d139cf543..769ef632c 100644
--- a/nx-X11/programs/Xserver/Xi/getfocus.c
+++ b/nx-X11/programs/Xserver/Xi/getfocus.c
@@ -76,11 +76,11 @@ SOFTWARE.
int
SProcXGetDeviceFocus(client)
register ClientPtr client;
- {
+{
REQUEST(xGetDeviceFocusReq);
swaps(&stuff->length);
- return(ProcXGetDeviceFocus(client));
- }
+ return (ProcXGetDeviceFocus(client));
+}
/***********************************************************************
*
@@ -91,20 +91,20 @@ SProcXGetDeviceFocus(client)
int
ProcXGetDeviceFocus(client)
ClientPtr client;
- {
- DeviceIntPtr dev;
- FocusClassPtr focus;
+{
+ DeviceIntPtr dev;
+ FocusClassPtr focus;
xGetDeviceFocusReply rep;
REQUEST(xGetDeviceFocusReq);
REQUEST_SIZE_MATCH(xGetDeviceFocusReq);
- dev = LookupDeviceIntRec (stuff->deviceid);
+ dev = LookupDeviceIntRec(stuff->deviceid);
if (dev == NULL || !dev->focus)
{
SendErrorToClient(client, IReqCode, X_GetDeviceFocus, 0, BadDevice);
return Success;
- }
+ }
rep.repType = X_Reply;
rep.RepType = X_GetDeviceFocus;
@@ -119,14 +119,14 @@ ProcXGetDeviceFocus(client)
rep.focus = PointerRoot;
else if (focus->win == FollowKeyboardWin)
rep.focus = FollowKeyboard;
- else
+ else
rep.focus = focus->win->drawable.id;
rep.time = focus->time.milliseconds;
rep.revertTo = focus->revert;
- WriteReplyToClient (client, sizeof(xGetDeviceFocusReply), &rep);
+ WriteReplyToClient(client, sizeof(xGetDeviceFocusReply), &rep);
return Success;
- }
+}
/***********************************************************************
*
@@ -140,10 +140,10 @@ SRepXGetDeviceFocus (client, size, rep)
ClientPtr client;
int size;
xGetDeviceFocusReply *rep;
- {
+{
swaps(&rep->sequenceNumber);
swapl(&rep->length);
swapl(&rep->focus);
swapl(&rep->time);
WriteToClient(client, size, rep);
- }
+}