aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/ungrdevk.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/ungrdevk.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/ungrdevk.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/ungrdevk.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/nx-X11/programs/Xserver/Xi/ungrdevk.c b/nx-X11/programs/Xserver/Xi/ungrdevk.c
index 8c19c3a0e..76714b63e 100644
--- a/nx-X11/programs/Xserver/Xi/ungrdevk.c
+++ b/nx-X11/programs/Xserver/Xi/ungrdevk.c
@@ -81,14 +81,14 @@ SOFTWARE.
int
SProcXUngrabDeviceKey(client)
register ClientPtr client;
- {
+{
REQUEST(xUngrabDeviceKeyReq);
swaps(&stuff->length);
REQUEST_SIZE_MATCH(xUngrabDeviceKeyReq);
swapl(&stuff->grabWindow);
swaps(&stuff->modifiers);
- return(ProcXUngrabDeviceKey(client));
- }
+ return (ProcXUngrabDeviceKey(client));
+}
/***********************************************************************
*
@@ -99,43 +99,43 @@ SProcXUngrabDeviceKey(client)
int
ProcXUngrabDeviceKey(client)
ClientPtr client;
- {
- DeviceIntPtr dev;
- DeviceIntPtr mdev;
- WindowPtr pWin;
- GrabRec temporaryGrab;
+{
+ DeviceIntPtr dev;
+ DeviceIntPtr mdev;
+ WindowPtr pWin;
+ GrabRec temporaryGrab;
REQUEST(xUngrabDeviceKeyReq);
REQUEST_SIZE_MATCH(xUngrabDeviceKeyReq);
- dev = LookupDeviceIntRec (stuff->grabbed_device);
+ dev = LookupDeviceIntRec(stuff->grabbed_device);
if (dev == NULL)
{
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
BadDevice);
return Success;
- }
+ }
if (dev->key == NULL)
{
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0, BadMatch);
return Success;
- }
+ }
if (stuff->modifier_device != UseXKeyboard)
{
- mdev = LookupDeviceIntRec (stuff->modifier_device);
+ mdev = LookupDeviceIntRec(stuff->modifier_device);
if (mdev == NULL)
{
- SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
- BadDevice);
+ SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
+ BadDevice);
return Success;
- }
+ }
if (mdev->key == NULL)
{
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
BadMatch);
return Success;
- }
+ }
}
else
mdev = (DeviceIntPtr) LookupKeyboardDevice();
@@ -146,7 +146,7 @@ ProcXUngrabDeviceKey(client)
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
BadWindow);
return Success;
- }
+ }
if (((stuff->key > dev->key->curKeySyms.maxKeyCode) ||
(stuff->key < dev->key->curKeySyms.minKeyCode))
&& (stuff->key != AnyKey))
@@ -154,19 +154,19 @@ ProcXUngrabDeviceKey(client)
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
BadValue);
return Success;
- }
+ }
if ((stuff->modifiers != AnyModifier) &&
(stuff->modifiers & ~AllModifiersMask))
{
SendErrorToClient(client, IReqCode, X_UngrabDeviceKey, 0,
BadValue);
return Success;
- }
+ }
temporaryGrab.resource = client->clientAsMask;
temporaryGrab.device = dev;
temporaryGrab.window = pWin;
- temporaryGrab.type = DeviceKeyPress;
+ temporaryGrab.type = DeviceKeyPress;
temporaryGrab.modifierDevice = mdev;
temporaryGrab.modifiersDetail.exact = stuff->modifiers;
temporaryGrab.modifiersDetail.pMask = NULL;
@@ -175,4 +175,4 @@ ProcXUngrabDeviceKey(client)
DeletePassiveGrabFromList(&temporaryGrab);
return Success;
- }
+}