diff options
-rw-r--r-- | event/xcb_event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/event/xcb_event.h b/event/xcb_event.h index 8750dee..c2d1cd6 100644 --- a/event/xcb_event.h +++ b/event/xcb_event.h @@ -43,6 +43,15 @@ extern "C" { #endif +/** + * @brief Bit mask to find event type regardless of event source. + * + * Each event in the X11 protocol contains an 8-bit type code. + * The most-significant bit in this code is set if the event was + * generated from a SendEvent request. This mask can be used to + * determine the type of event regardless of how the event was + * generated. See the X11R6 protocol specification for details. + */ #define XCB_EVENT_RESPONSE_TYPE_MASK (0x7f) #define XCB_EVENT_RESPONSE_TYPE(e) (e->response_type & XCB_EVENT_RESPONSE_TYPE_MASK) #define XCB_EVENT_SENT(e) (e->response_type & ~XCB_EVENT_RESPONSE_TYPE_MASK) |