diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 16:33:03 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 16:33:03 +1030 |
commit | 330cfbd0ca6e6d1557e08ab0c555fe87acc7be29 (patch) | |
tree | 561d17c388f89772c9b57c579f14539b8e7adb3c | |
parent | d5245e8b85deec6f76bec2c9599da59516e50cca (diff) |
Make XAnyDeviceHierarchyChangeInfo a union of the possible types.
Kinda the same as the XEvent union.
Some whitespace fixes too.
-rw-r--r-- | XInput.h | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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. |