[Xcb-commit] event

Julien Danjou jdanjou at kemper.freedesktop.org
Wed Sep 17 02:05:04 PDT 2008


 event/xcb_event.h |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 28cd98c0a6e92e257613729fd2ac8c4630077edb
Author: Henning Sten <henning.sten at yahoo.com>
Date:   Tue Sep 16 20:28:13 2008 +0200

    add doxygen documentation markup for XCB_EVENT_RESPONSE_TYPE_MASK macro
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

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)


More information about the xcb-commit mailing list