aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/chgprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/chgprop.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/chgprop.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/nx-X11/programs/Xserver/Xi/chgprop.c b/nx-X11/programs/Xserver/Xi/chgprop.c
index af8c6d6d5..662e5bd8c 100644
--- a/nx-X11/programs/Xserver/Xi/chgprop.c
+++ b/nx-X11/programs/Xserver/Xi/chgprop.c
@@ -79,17 +79,17 @@ SOFTWARE.
int
SProcXChangeDeviceDontPropagateList(client)
register ClientPtr client;
- {
+{
REQUEST(xChangeDeviceDontPropagateListReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xChangeDeviceDontPropagateListReq);
swapl(&stuff->window);
swaps(&stuff->count);
REQUEST_FIXED_SIZE(xChangeDeviceDontPropagateListReq,
- stuff->count * sizeof(CARD32));
+ stuff->count * sizeof(CARD32));
SwapLongs((CARD32 *) (&stuff[1]), stuff->count);
- return(ProcXChangeDeviceDontPropagateList(client));
- }
+ return (ProcXChangeDeviceDontPropagateList(client));
+}
/***********************************************************************
*
@@ -100,43 +100,43 @@ SProcXChangeDeviceDontPropagateList(client)
int
ProcXChangeDeviceDontPropagateList (client)
register ClientPtr client;
- {
- int i;
- WindowPtr pWin;
- struct tmask tmp[EMASKSIZE];
- OtherInputMasks *others;
+{
+ int i;
+ WindowPtr pWin;
+ struct tmask tmp[EMASKSIZE];
+ OtherInputMasks *others;
REQUEST(xChangeDeviceDontPropagateListReq);
REQUEST_AT_LEAST_SIZE(xChangeDeviceDontPropagateListReq);
- if (stuff->length !=(sizeof(xChangeDeviceDontPropagateListReq)>>2) +
+ if (stuff->length != (sizeof(xChangeDeviceDontPropagateListReq) >> 2) +
stuff->count)
{
- SendErrorToClient (client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
- BadLength);
+ SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
+ BadLength);
return Success;
- }
+ }
- pWin = (WindowPtr) LookupWindow (stuff->window, client);
+ pWin = (WindowPtr) LookupWindow(stuff->window, client);
if (!pWin)
{
client->errorValue = stuff->window;
- SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
- BadWindow);
+ SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
+ BadWindow);
return Success;
- }
+ }
if (stuff->mode != AddToList && stuff->mode != DeleteFromList)
{
client->errorValue = stuff->window;
- SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
- BadMode);
+ SendErrorToClient(client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
+ BadMode);
return Success;
- }
+ }
- if (CreateMaskFromList (client, (XEventClass *)&stuff[1],
+ if (CreateMaskFromList(client, (XEventClass *) & stuff[1],
stuff->count, tmp, NULL, X_ChangeDeviceDontPropagateList) != Success)
- return Success;
+ return Success;
others = wOtherInputMasks(pWin);
if (!others && stuff->mode == DeleteFromList)
@@ -156,8 +156,8 @@ ProcXChangeDeviceDontPropagateList (client)
SendErrorToClient ( client, IReqCode, X_ChangeDeviceDontPropagateList, 0,
BadClass);
return Success;
- }
}
+ }
return Success;
- }
+}