diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-06 12:08:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-02-23 17:52:40 +1000 |
commit | 47f136ed6fd80310f715a2555501d1b271dd084c (patch) | |
tree | 7d9bea3fe57557a9c3a0f450aae82230b24049dc /include | |
parent | bdc262701a37a0c12ead810d63fa99a26cbb82ec (diff) |
mi: change custom handlers to internal events
This should re-enable DGA, but XQuartz needs to be changed to internal events
too now.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/events.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/events.h b/include/events.h index 4b69246ab..4b98dee72 100644 --- a/include/events.h +++ b/include/events.h @@ -55,6 +55,9 @@ enum { ET_ProximityOut, ET_DeviceChanged, ET_Hierarchy, +#if XFreeXDGA + ET_DGAEvent, +#endif ET_Internal = 0xFF /* First byte */ } EventType; @@ -153,6 +156,36 @@ typedef struct /* FIXME: add the new capabilities here */ } DeviceChangedEvent; +#if XFreeXDGA +/** + * DGAEvent, used by DGA to intercept and emulate input events. + * + * @header: Always ET_Internal + * @type: ET_DGAEvent + * @length: Length in bytes + * @time: Time in ms + * @subtype: KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify + * @detail: Key code or button number. + * @dx: Relative x coordinate + * @dy: Relative y coordinate + * @screen: Screen number this event applies to + * @state: Core modifier/button state + */ +typedef struct +{ + unsigned char header; + int type; + int length; + Time time; + int subtype; + int detail; + int dx; + int dy; + int screen; + uint16_t state; +} DGAEvent; +#endif + /** * InternalEvent, event type used inside the X server for input event * processing. @@ -173,6 +206,9 @@ typedef struct } any; DeviceEvent device; DeviceChangedEvent changed; +#if XFreeXDGA + DGAEvent dga; +#endif } u; } InternalEvent; |