summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-02-14 16:33:03 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-02-14 16:33:03 +1030
commit330cfbd0ca6e6d1557e08ab0c555fe87acc7be29 (patch)
tree561d17c388f89772c9b57c579f14539b8e7adb3c
parentd5245e8b85deec6f76bec2c9599da59516e50cca (diff)
Make XAnyDeviceHierarchyChangeInfo a union of the possible types.
Kinda the same as the XEvent union. Some whitespace fixes too.
-rw-r--r--XInput.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/XInput.h b/XInput.h
index 774c496..8b28a94 100644
--- a/XInput.h
+++ b/XInput.h
@@ -999,13 +999,8 @@ typedef struct {
/*******************************************************************
- *
+ *
*/
-
-typedef struct {
- int type;
-} XAnyHierarchyChangeInfo;
-
typedef struct {
int type;
char* name;
@@ -1025,9 +1020,17 @@ typedef struct {
int type;
XDevice* device;
int changeMode; /* AttachToMaster, Floating */
- XDevice* newMaster;
+ XDevice* newMaster;
} XChangeAttachmentInfo;
+typedef union {
+ int type; /* must be first element */
+ XCreateMasterInfo create;
+ XRemoveMasterInfo remove;
+ XChangeAttachmentInfo change;
+} XAnyHierarchyChangeInfo;
+
+
/*******************************************************************
*
* Function definitions.