diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-25 12:14:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-25 15:22:15 +1000 |
commit | 31f492bf9471fc593275fb95f97312db21439641 (patch) | |
tree | 91a40ee8b01d629e1bd6c9a78dddafbbf421e925 /XI2proto.h | |
parent | f065f6c12aa5c2e79f1af38908e86d20a2efdc86 (diff) |
Add XIGetSelectedEvents request and reply.
Counterpart to XISelectEvents, used to retrieve event masks from the server.
Diffstat (limited to 'XI2proto.h')
-rw-r--r-- | XI2proto.h | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -98,10 +98,11 @@ #define X_XIChangeProperty 57 #define X_XIDeleteProperty 58 #define X_XIGetProperty 59 +#define X_XIGetSelectedEvents 60 /*@}*/ /** Number of XI requests */ -#define XI2REQUESTS (X_XIGetProperty - X_XIQueryPointer + 1) +#define XI2REQUESTS (X_XIGetSelectedEvents - X_XIQueryPointer + 1) /** Number of XI2 events */ #define XI2EVENTS (XI_LASTEVENT + 1) @@ -326,6 +327,33 @@ typedef struct { } xXISelectEventsReq; #define sz_xXISelectEventsReq 12 +/** + * @struct xXIGetSelectedEventsReq + * Query for selected events on a given window. + */ +typedef struct { + uint8_t reqType; /**< Input extension major code */ + uint8_t ReqType; /**< Always ::X_XIGetSelectedEvents */ + uint16_t length; /**< Length in 4 byte units */ + Window window; +} xXIGetSelectedEventsReq; +#define sz_xXIGetSelectedEventsReq 8 + +typedef struct { + uint8_t repType; /**< Input extension major opcode */ + uint8_t RepType; /**< Always ::X_XIGetSelectedEvents */ + uint16_t sequenceNumber; + uint32_t length; + uint16_t num_masks; /**< Number of xXIEventMask structs + trailing the reply */ + uint16_t pad0; + uint32_t pad1; + uint32_t pad2; + uint32_t pad3; + uint32_t pad4; + uint32_t pad5; +} xXIGetSelectedEventsReply; +#define sz_xXIGetSelectedEventsReply 32 /** * @struct xXIQueryPointerReq |