diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-07-06 15:43:08 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-07-06 15:43:08 +0930 |
commit | 5ccc09b18244f91a06b3bea20b02a97280d1a229 (patch) | |
tree | 485d8f1818f2f42490c79ed252e38eec05c06f6a /include/windowstr.h | |
parent | c1a16bdcfe7aa907fe78f27dc606a8e5a2699952 (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 'include/windowstr.h')
-rw-r--r-- | include/windowstr.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/include/windowstr.h b/include/windowstr.h index a1d501d37..959ea0ec1 100644 --- a/include/windowstr.h +++ b/include/windowstr.h @@ -77,17 +77,15 @@ typedef struct _DevCursorNode { struct _DevCursorNode* next; } DevCursNodeRec, *DevCursNodePtr, *DevCursorList; -typedef struct _GEClientRec { - Mask eventMask[MAXEXTENSIONS]; - ClientPtr client; - struct _GEClientRec* next; -} GEClientRec, *GEClientPtr; - -/* Mask structure for GE extension. Allows one mask per extension. */ -typedef struct _GEEventMasks { - Mask eventMasks[MAXEXTENSIONS]; - struct _GEClientRec* geClients; -} GEEventMasksRec, *GEEventMasksPtr; +/* Mask structure for GE extension as stored on the window. + * Allows one mask per extension. + * .eventMask - Summary mask for all clients, used for quick checking. + * .geClients - list of clients with their specific mask. + */ +typedef struct _GenericClientMasks { + Mask eventMasks[MAXEXTENSIONS]; + GenericMaskPtr geClients; +} GenericClientMasksRec, *GenericClientMasksPtr; typedef struct _WindowAccessRec { int defaultRule; /* WindowAccessDenyAll */ @@ -117,7 +115,7 @@ typedef struct _WindowOpt { struct _OtherInputMasks *inputMasks; /* default: NULL */ #endif DevCursorList deviceCursors; /* default: NULL */ - struct _GEEventMasks* geMasks; /* default: NULL */ + struct _GenericClientMasks *geMasks;/* default: NULL */ WindowAccessRec access; } WindowOptRec, *WindowOptPtr; |