diff options
author | Arnaud Fontaine <arnau@debian.org> | 2009-07-15 16:23:41 +0100 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2009-08-03 17:05:20 +0200 |
commit | 857ea75bb9df7a3b335c06e9b90dd54230b14bb1 (patch) | |
tree | 27c14519e4998f2b58da5dacd78d4ee61a438941 | |
parent | 12b991f6b76f981c7f92f30413a4aea9c125b8e4 (diff) |
event: update to libxcb 1.4
Remove useless macros to get error information because libxcb 1.4 now
provides additional fields (major_opcode, minor_opcode and
resource_id) like Xlib.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | event/xcb_event.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 714b617..61811a6 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,7 @@ AC_SUBST(xcbincludedir) pkgconfigdir='${libdir}/pkgconfig' AC_SUBST(pkgconfigdir) -PKG_CHECK_MODULES(XCB, xcb >= 1.2) +PKG_CHECK_MODULES(XCB, xcb >= 1.4) ###### # Check version of xcb-proto that xcb was compiled against diff --git a/event/xcb_event.h b/event/xcb_event.h index 05b9cac..9bd286b 100644 --- a/event/xcb_event.h +++ b/event/xcb_event.h @@ -55,8 +55,6 @@ extern "C" { #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) -#define XCB_EVENT_ERROR_TYPE(e) (*((uint8_t *) e + 1)) -#define XCB_EVENT_REQUEST_TYPE(e) (*((uint8_t *) e + 10)) typedef int (*xcb_generic_event_handler_t)(void *data, xcb_connection_t *c, xcb_generic_event_t *event); typedef int (*xcb_generic_error_handler_t)(void *data, xcb_connection_t *c, xcb_generic_error_t *error); |