From 857ea75bb9df7a3b335c06e9b90dd54230b14bb1 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Wed, 15 Jul 2009 16:23:41 +0100 Subject: 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. --- configure.ac | 2 +- event/xcb_event.h | 2 -- 2 files changed, 1 insertion(+), 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); -- cgit v1.2.3