aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/setfocus.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/setfocus.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/setfocus.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/setfocus.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/nx-X11/programs/Xserver/Xi/setfocus.c b/nx-X11/programs/Xserver/Xi/setfocus.c
index 6b5f87e61..e2dcdd8a8 100644
--- a/nx-X11/programs/Xserver/Xi/setfocus.c
+++ b/nx-X11/programs/Xserver/Xi/setfocus.c
@@ -79,14 +79,14 @@ SOFTWARE.
int
SProcXSetDeviceFocus(client)
register ClientPtr client;
- {
+{
REQUEST(xSetDeviceFocusReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xSetDeviceFocusReq);
swapl(&stuff->focus);
swapl(&stuff->time);
- return(ProcXSetDeviceFocus(client));
- }
+ return (ProcXSetDeviceFocus(client));
+}
/***********************************************************************
*
@@ -97,24 +97,24 @@ SProcXSetDeviceFocus(client)
int
ProcXSetDeviceFocus(client)
register ClientPtr client;
- {
- int ret;
- register DeviceIntPtr dev;
+{
+ int ret;
+ register DeviceIntPtr dev;
REQUEST(xSetDeviceFocusReq);
REQUEST_SIZE_MATCH(xSetDeviceFocusReq);
- dev = LookupDeviceIntRec (stuff->device);
+ dev = LookupDeviceIntRec(stuff->device);
if (dev==NULL || !dev->focus)
{
SendErrorToClient(client, IReqCode, X_SetDeviceFocus, 0, BadDevice);
return Success;
- }
+ }
- ret = SetInputFocus (client, dev, stuff->focus, stuff->revertTo,
- stuff->time, TRUE);
+ ret = SetInputFocus(client, dev, stuff->focus, stuff->revertTo,
+ stuff->time, TRUE);
if (ret != Success)
SendErrorToClient(client, IReqCode, X_SetDeviceFocus, 0, ret);
return Success;
- }
+}