summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-09-16 15:27:49 +0200
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:03:54 +0900
commit946881a36c4e1d2d0a7ceaef6f99483390fbb610 (patch)
treef7d5ce2490560376f23da42a833048b79e900c2d
parenteed500fcc0566624ba3256998f2129f53cac0dcc (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.c3
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);