diff options
author | Arnaud Fontaine <arnau@debian.org> | 2009-07-15 16:23:41 +0100 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2010-11-14 19:52:37 +0900 |
commit | 17cfe28823085af5d7e174e77482e9157bdbe6d9 (patch) | |
tree | e833c67cc6d153c82b6ae2cccef37060a8464594 | |
parent | 5755a6ea3f5d0b92ddfccd2439d802ea0af70dc8 (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 05a744f..1037c9c 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); |