aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/chgprop.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-02-15 21:25:27 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 00:58:46 +0100
commitb0abdf7bd8284b1edf39c13e1863ecc420fd68e4 (patch)
tree191171d5cfdee1851ad3b5246be6363f9d1f3445 /nx-X11/programs/Xserver/Xi/chgprop.c
parent7aca428ffe10b2cffca8fe01962aef421a5a5645 (diff)
downloadnx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.gz
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.bz2
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.zip
Xi: reformat
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/chgprop.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/chgprop.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/Xi/chgprop.c b/nx-X11/programs/Xserver/Xi/chgprop.c
index 4c55f5508..bdff7ceee 100644
--- a/nx-X11/programs/Xserver/Xi/chgprop.c
+++ b/nx-X11/programs/Xserver/Xi/chgprop.c
@@ -108,24 +108,21 @@ ProcXChangeDeviceDontPropagateList(register ClientPtr client)
REQUEST_AT_LEAST_SIZE(xChangeDeviceDontPropagateListReq);
if (stuff->length != (sizeof(xChangeDeviceDontPropagateListReq) >> 2) +
- stuff->count)
- {
+ stuff->count) {
SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
BadLength);
return Success;
}
pWin = (WindowPtr) LookupWindow(stuff->window, client);
- if (!pWin)
- {
+ if (!pWin) {
client->errorValue = stuff->window;
SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
BadWindow);
return Success;
}
- if (stuff->mode != AddToList && stuff->mode != DeleteFromList)
- {
+ if (stuff->mode != AddToList && stuff->mode != DeleteFromList) {
client->errorValue = stuff->window;
SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
BadMode);
@@ -133,14 +130,14 @@ ProcXChangeDeviceDontPropagateList(register ClientPtr client)
}
if (CreateMaskFromList(client, (XEventClass *) & stuff[1],
- stuff->count, tmp, NULL, X_ChangeDeviceDontPropagateList) != Success)
+ stuff->count, tmp, NULL,
+ X_ChangeDeviceDontPropagateList) != Success)
return Success;
others = wOtherInputMasks(pWin);
if (!others && stuff->mode == DeleteFromList)
return Success;
- for (i=0; i<EMASKSIZE; i++)
- {
+ for (i = 0; i < EMASKSIZE; i++) {
if (tmp[i].mask == 0)
continue;
@@ -149,10 +146,10 @@ ProcXChangeDeviceDontPropagateList(register ClientPtr client)
else if (others)
tmp[i].mask |= others->dontPropagateMask[i];
- if (DeviceEventSuppressForWindow (pWin,client,tmp[i].mask,i) != Success)
- {
- SendErrorToClient ( client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
- BadClass);
+ if (DeviceEventSuppressForWindow(pWin, client, tmp[i].mask, i) !=
+ Success) {
+ SendErrorToClient(client, IReqCode,
+ X_ChangeDeviceDontPropagateList, 0, BadClass);
return Success;
}
}