diff options
author | Julien Danjou <julien@danjou.info> | 2008-09-16 15:27:49 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2008-09-16 15:34:25 +0200 |
commit | c8ac03d4f024d23aa8514c5b4db91e8dc5f1e2b6 (patch) | |
tree | 347aba248acaea1d31433360aa88f5595f55a02d | |
parent | c58c700ddc3207d8eafb51cd56a70c84f057cac8 (diff) |
event: define XCB_EVENT_RESPONSE_TYPE_MASK
And use it.
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r-- | image/test_bitmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/image/test_bitmap.c b/image/test_bitmap.c index c9d5b49..27725c1 100644 --- a/image/test_bitmap.c +++ b/image/test_bitmap.c @@ -4,6 +4,7 @@ #include <assert.h> #include <xcb/xcb.h> #include "../aux/xcb_aux.h" +#include "../event/xcb_event.h" #include "xcb_image.h" #include "test.xbm" @@ -49,7 +50,7 @@ void process_events(xcb_connection_t *c, xcb_void_cookie_t cookie; while ((e = xcb_wait_for_event(c))) { - uint32_t r = e->response_type & 0x7f; + uint32_t r = XCB_EVENT_RESPONSE_TYPE(e); xcb_generic_error_t *err; fprintf(stderr, "event %d\n", r); |