Kinda the same as the XEvent union.
Some whitespace fixes too.
/*******************************************************************
- *
+ *
*/
-
-typedef struct {
- int type;
-} XAnyHierarchyChangeInfo;
-
typedef struct {
int type;
char* name;
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.