diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-24 11:03:23 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-24 11:14:43 +0930 |
commit | 5f3e5b3462bb02e828c70d0e1890b5a83d399d42 (patch) | |
tree | 59260f8e1003e7f4d3adc08970e15f42769fe9d6 /Xext | |
parent | 275cdc1c74b7e43ecd931d312469fecc8d998ed1 (diff) |
Xext: remove trailing whitespaces in geext.{c|h}
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/geext.c | 34 | ||||
-rw-r--r-- | Xext/geext.h | 10 | ||||
-rw-r--r-- | Xext/geint.h | 2 |
3 files changed, 23 insertions, 23 deletions
diff --git a/Xext/geext.c b/Xext/geext.c index 77bb181ee..83473226f 100644 --- a/Xext/geext.c +++ b/Xext/geext.c @@ -78,7 +78,7 @@ static int ProcGEQueryVersion(ClientPtr client) rep.minorVersion = stuff->minorVersion; } else { rep.majorVersion = GE_MAJOR; - if (stuff->majorVersion == GE_MAJOR && + if (stuff->majorVersion == GE_MAJOR && stuff->minorVersion < GE_MINOR) rep.minorVersion = stuff->minorVersion; else @@ -90,8 +90,8 @@ static int ProcGEQueryVersion(ClientPtr client) if (client->swapped) { - swaps(&rep.sequenceNumber, n); - swapl(&rep.length, n); + swaps(&rep.sequenceNumber, n); + swapl(&rep.length, n); swaps(&rep.majorVersion, n); swaps(&rep.minorVersion, n); } @@ -132,7 +132,7 @@ int (*SProcGEVector[GENumberRequests])(ClientPtr) = { /************************************************************/ /* dispatch requests */ -static int +static int ProcGEDispatch(ClientPtr client) { GEClientInfoPtr pGEClient = GEGetClient(client); @@ -188,7 +188,7 @@ GEResetProc(ExtensionEntry *extEntry) } /* Calls the registered event swap function for the extension. */ -static void +static void SGEGenericEvent(xEvent* from, xEvent* to) { xGenericEvent* gefrom = (xGenericEvent*)from; @@ -215,9 +215,9 @@ GEExtensionInit(void) FatalError("GEExtensionInit: register client callback failed.\n"); } - if((extEntry = AddExtension(GE_NAME, - GENumberEvents, GENumberErrors, - ProcGEDispatch, SProcGEDispatch, + if((extEntry = AddExtension(GE_NAME, + GENumberEvents, GENumberErrors, + ProcGEDispatch, SProcGEDispatch, GEResetProc, StandardMinorOpcode)) != 0) { GEEventBase = extEntry->eventBase; @@ -239,15 +239,15 @@ GEExtensionInit(void) /* Register an extension with GE. The given swap function will be called each * time an event is sent to a client with different byte order. - * @param extension The extensions major opcode - * @param ev_swap The event swap function. + * @param extension The extensions major opcode + * @param ev_swap The event swap function. * @param ev_fill Called for an event before delivery. The extension now has * the chance to fill in necessary fields for the event. */ void GERegisterExtension( - int extension, + int extension, void (*ev_swap)(xGenericEvent* from, xGenericEvent* to), - void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev, + void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev, WindowPtr pWin, GrabPtr pGrab) ) { @@ -261,8 +261,8 @@ void GERegisterExtension( /* Sets type and extension field for a generic event. This is just an - * auxiliary function, extensions could do it manually too. - */ + * auxiliary function, extensions could do it manually too. + */ void GEInitEvent(xGenericEvent* ev, int extension) { ev->type = GenericEvent; @@ -271,7 +271,7 @@ void GEInitEvent(xGenericEvent* ev, int extension) } /* Recalculates the summary mask for the window. */ -static void +static void GERecalculateWinMask(WindowPtr pWin) { int i; @@ -300,7 +300,7 @@ GERecalculateWinMask(WindowPtr pWin) } /* Set generic event mask for given window. */ -void GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev, +void GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev, WindowPtr pWin, int extension, Mask mask) { GenericMaskPtr cli; @@ -403,7 +403,7 @@ BOOL GEDeviceMaskIsSet(WindowPtr pWin, DeviceIntPtr pDev, while(gemask) { - if ((!gemask->dev || gemask->dev == pDev) && + if ((!gemask->dev || gemask->dev == pDev) && (gemask->eventMask[extension] & mask)) return TRUE; diff --git a/Xext/geext.h b/Xext/geext.h index 577654a17..84539a94a 100644 --- a/Xext/geext.h +++ b/Xext/geext.h @@ -1,4 +1,4 @@ -/* +/* Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au> @@ -46,7 +46,7 @@ typedef struct _GenericMaskRec { ClientPtr client; /* client who set the event mask */ DeviceIntPtr dev; Mask eventMask[MAXEXTENSIONS]; /* one mask per extension */ - struct _GenericMaskRec* next; + struct _GenericMaskRec* next; } GenericMaskRec, *GenericMaskPtr; @@ -57,7 +57,7 @@ typedef struct _GenericMaskRec { */ typedef struct _GEExtension { void (*evswap)(xGenericEvent* from, xGenericEvent* to); - void (*evfill)(xGenericEvent* ev, + void (*evfill)(xGenericEvent* ev, DeviceIntPtr pDev, /* device */ WindowPtr pWin, /* event window */ GrabPtr pGrab /* current grab, may be NULL */ @@ -101,12 +101,12 @@ void GEWindowSetMask(ClientPtr pClient, DeviceIntPtr pDev, void GERegisterExtension( int extension, void (*ev_dispatch)(xGenericEvent* from, xGenericEvent* to), - void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev, + void (*ev_fill)(xGenericEvent* ev, DeviceIntPtr pDev, WindowPtr pWin, GrabPtr pGrab) ); void GEInitEvent(xGenericEvent* ev, int extension); -BOOL GEDeviceMaskIsSet(WindowPtr pWin, DeviceIntPtr pDev, +BOOL GEDeviceMaskIsSet(WindowPtr pWin, DeviceIntPtr pDev, int extension, Mask mask); void GEExtensionInit(void); diff --git a/Xext/geint.h b/Xext/geint.h index 57404d872..7747234f1 100644 --- a/Xext/geint.h +++ b/Xext/geint.h @@ -1,4 +1,4 @@ -/* +/* Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au> |