diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-09-27 17:08:12 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2009-09-27 23:31:07 -0700 |
commit | 226b1033b48807fd6871ba626e20ef1411904939 (patch) | |
tree | 7f6574b1ab5be11c988b0db44103a06ce750b47a /include/eventstr.h | |
parent | 0c2731596f27f2cdf5000ba41de37e7eb86ad6f9 (diff) |
XQuartz: Transition from xEvent based mieq to InternalEvent
(cherry picked from commit a3dbde2de87ee4f577748a8c447501a3ea462559)
Diffstat (limited to 'include/eventstr.h')
-rw-r--r-- | include/eventstr.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/eventstr.h b/include/eventstr.h index 509982b46..0d5b1c62a 100644 --- a/include/eventstr.h +++ b/include/eventstr.h @@ -66,6 +66,9 @@ enum EventType { ET_RawButtonPress, ET_RawButtonRelease, ET_RawMotion, +#ifdef XQUARTZ + ET_XQuartz, +#endif ET_Internal = 0xFF /* First byte */ }; @@ -210,6 +213,18 @@ struct _RawDeviceEvent } valuators; }; +#ifdef XQUARTZ +#define XQUARTZ_EVENT_MAXARGS 5 +struct _XQuartzEvent { + unsigned char header; /**< Always ET_Internal */ + enum EventType type; /**< Always ET_XQuartz */ + int length; /**< Length in bytes */ + Time time; /**< Time in ms. */ + int subtype; /**< Subtype defined by XQuartz DDX */ + uint32_t data[XQUARTZ_EVENT_MAXARGS]; /**< Up to 5 32bit values passed to handler */ +}; +#endif + /** * Event type used inside the X server for input event * processing. @@ -227,6 +242,9 @@ union _InternalEvent { DGAEvent dga_event; #endif RawDeviceEvent raw_event; +#ifdef XQUARTZ + XQuartzEvent xquartz_event; +#endif }; #endif |