diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 17:26:35 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 17:30:20 +1030 |
commit | 685a2dd32736956f5175afb9bc5773c829725fea (patch) | |
tree | e41b91bd5b051ea43831cbdffb1282ab50889d92 /XIproto.h | |
parent | 6037b37a5bf03f0b38db6a83fe1bc48551b8363c (diff) |
Add DeviceHierarchyChangedEvent.
Uses same event type as the now removed PointerKeyboardPairingChangedNotify.
(removing the RandomStringEvent too, should have been gone a while ago)
Diffstat (limited to 'XIproto.h')
-rw-r--r-- | XIproto.h | 49 |
1 files changed, 24 insertions, 25 deletions
@@ -119,8 +119,7 @@ struct tmask #define XI_DeviceLeaveNotify 17 /* GE events */ -#define XI_PointerKeyboardPairingChangedNotify 0 -#define XI_RandomStringEvent 1 +#define XI_DeviceHierarchyChangedNotify 0 #define XI_RawDeviceEvent 2 @@ -2079,29 +2078,6 @@ typedef struct } pairingChangedNotify; -/********************************************************** - * - * RandomStringEvent. - * GE event, != 32 bytes. - * - * FOR TESTING, DO NOT USE THIS. - */ - -typedef struct - { - BYTE type; /* always GenericEvent */ - BYTE extension; /* XI extension offset */ - CARD16 sequenceNumber B16; - CARD32 length B32; - CARD16 evtype B16; /* XI_RandomStringEvent */ - CARD16 slen B16; - CARD32 pad1 B32; - CARD32 pad2 B32; - CARD32 pad3 B32; - CARD32 pad4 B32; - CARD32 pad5 B32; - } randomStringEvent; - /********************************************************* * RawDeviceEvent. * @@ -2131,6 +2107,29 @@ typedef struct } rawDeviceEvent; +/********************************************************* + * DeviceHierarchyChangedEvent. + * + * Intended as a notification event only, the client is expected to query the + * server for input devices after receipt of this event. + */ + +typedef struct + { + BYTE type; /* always GenericEvent */ + BYTE extension; /* XI extension offset */ + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD16 evtype B16; /* XI_DeviceHierarchyChangedNotify */ + CARD16 pad0 B16; + CARD32 time B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + } deviceHierarchyChangedEvent; + + #undef Window #undef Time #undef KeyCode |