summaryrefslogtreecommitdiff
path: root/Xext/geext.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-07-06 15:43:08 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-07-06 15:43:08 +0930
commit5ccc09b18244f91a06b3bea20b02a97280d1a229 (patch)
tree485d8f1818f2f42490c79ed252e38eec05c06f6a /Xext/geext.c
parentc1a16bdcfe7aa907fe78f27dc606a8e5a2699952 (diff)
Use the same struct for generic event masks throughout the code.
Renaming those structs too. Previously grabs were using a different struct than windows, which was reasonably stupid.
Diffstat (limited to 'Xext/geext.c')
-rw-r--r--Xext/geext.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Xext/geext.c b/Xext/geext.c
index 0add5e1fb..0c5fcabac 100644
--- a/Xext/geext.c
+++ b/Xext/geext.c
@@ -207,7 +207,7 @@ GEExtensionInit(void)
GEClientPrivateIndex = AllocateClientPrivateIndex();
if (!AllocateClientPrivate(GEClientPrivateIndex,
- sizeof(GEClientRec)))
+ sizeof(GenericMaskRec)))
{
FatalError("GEExtensionInit: Alloc client private failed.\n");
}
@@ -277,8 +277,8 @@ static void
GERecalculateWinMask(WindowPtr pWin)
{
int i;
- GEClientPtr it;
- GEEventMasksPtr evmasks;
+ GenericMaskPtr it;
+ GenericClientMasksPtr evmasks;
if (!pWin->optional)
return;
@@ -304,7 +304,7 @@ GERecalculateWinMask(WindowPtr pWin)
/* Set generic event mask for given window. */
void GEWindowSetMask(ClientPtr pClient, WindowPtr pWin, int extension, Mask mask)
{
- GEClientPtr cli;
+ GenericMaskPtr cli;
extension = (extension & 0x7F);
@@ -322,7 +322,7 @@ void GEWindowSetMask(ClientPtr pClient, WindowPtr pWin, int extension, Mask mask
if (mask)
{
- GEEventMasksPtr evmasks = pWin->optional->geMasks;
+ GenericClientMasksPtr evmasks = pWin->optional->geMasks;
/* check for existing client */
cli = evmasks->geClients;
@@ -335,7 +335,7 @@ void GEWindowSetMask(ClientPtr pClient, WindowPtr pWin, int extension, Mask mask
if (!cli)
{
/* new client */
- cli = (GEClientPtr)xcalloc(1, sizeof(GEClientRec));
+ cli = (GenericMaskPtr)xcalloc(1, sizeof(GenericMaskRec));
if (!cli)
{
ErrorF("GE: Insufficient memory to alloc client.\n");
@@ -356,7 +356,7 @@ void GEWindowSetMask(ClientPtr pClient, WindowPtr pWin, int extension, Mask mask
xfree(cli);
} else
{
- GEClientPtr prev = cli;
+ GenericMaskPtr prev = cli;
cli = cli->next;
while(cli)