aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/selectev.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/selectev.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/selectev.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/nx-X11/programs/Xserver/Xi/selectev.c b/nx-X11/programs/Xserver/Xi/selectev.c
index dea4c1841..71045370b 100644
--- a/nx-X11/programs/Xserver/Xi/selectev.c
+++ b/nx-X11/programs/Xserver/Xi/selectev.c
@@ -69,8 +69,8 @@ SOFTWARE.
#include "grabdev.h"
#include "selectev.h"
-extern Mask ExtExclusiveMasks[];
-extern Mask ExtValidMasks[];
+extern Mask ExtExclusiveMasks[];
+extern Mask ExtValidMasks[];
/***********************************************************************
*
@@ -81,7 +81,7 @@ extern Mask ExtValidMasks[];
int
SProcXSelectExtensionEvent (client)
register ClientPtr client;
- {
+{
REQUEST(xSelectExtensionEventReq);
swaps(&stuff->length);
REQUEST_AT_LEAST_SIZE(xSelectExtensionEventReq);
@@ -91,8 +91,8 @@ register ClientPtr client;
stuff->count * sizeof(CARD32));
SwapLongs((CARD32 *) (&stuff[1]), stuff->count);
- return(ProcXSelectExtensionEvent(client));
- }
+ return (ProcXSelectExtensionEvent(client));
+}
/***********************************************************************
*
@@ -103,46 +103,46 @@ register ClientPtr client;
int
ProcXSelectExtensionEvent (client)
register ClientPtr client;
- {
- int ret;
- int i;
- WindowPtr pWin;
- struct tmask tmp[EMASKSIZE];
+{
+ int ret;
+ int i;
+ WindowPtr pWin;
+ struct tmask tmp[EMASKSIZE];
REQUEST(xSelectExtensionEventReq);
REQUEST_AT_LEAST_SIZE(xSelectExtensionEventReq);
if (stuff->length !=(sizeof(xSelectExtensionEventReq)>>2) + stuff->count)
{
- SendErrorToClient (client, IReqCode, X_SelectExtensionEvent, 0,
- BadLength);
+ SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 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_SelectExtensionEvent, 0,
- BadWindow);
+ SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 0,
+ BadWindow);
return Success;
- }
+ }
- if ((ret = CreateMaskFromList (client, (XEventClass *)&stuff[1],
+ if ((ret = CreateMaskFromList(client, (XEventClass *) & stuff[1],
stuff->count, tmp, NULL, X_SelectExtensionEvent)) != Success)
return Success;
- for (i=0; i<EMASKSIZE; i++)
+ for (i = 0; i < EMASKSIZE; i++)
if (tmp[i].dev != NULL)
{
if ((ret = SelectForWindow((DeviceIntPtr)tmp[i].dev, pWin, client, tmp[i].mask,
ExtExclusiveMasks[i], ExtValidMasks[i])) != Success)
{
- SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 0,
- ret);
+ SendErrorToClient(client, IReqCode, X_SelectExtensionEvent, 0,
+ ret);
return Success;
- }
}
+ }
return Success;
- }
+}