aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-20 23:06:13 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-23 22:03:49 +0200
commit0196284331fc249293a9b6a74ba9f71ccdc681dd (patch)
tree99be292e261e3a0b6f3127e69e140e33c1e85e49
parent3391e5b634ebabf53dac16eee332068ea4d578f3 (diff)
xwm: remove xcb-util dependency
This hardcodes a define, but other projects (wlc/weston) either use the raw number or just redefine it with another name anyway... This should fix travis build.
-rw-r--r--xwayland/xwm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index ff22b089..02794e72 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1,5 +1,4 @@
#include <stdlib.h>
-#include <xcb/xcb_event.h>
#include <xcb/composite.h>
#include "wlr/util/log.h"
#include "wlr/types/wlr_surface.h"
@@ -171,6 +170,10 @@ static void handle_client_message(struct wlr_xwm *xwm, xcb_client_message_event_
wlr_log(L_DEBUG, "unhandled client message %u", ev->type);
}
+/* This is in xcb/xcb_event.h, but pulling xcb-util just for a constant
+ * others redefine anyway is meh
+ */
+#define XCB_EVENT_RESPONSE_TYPE_MASK (0x7f)
static int x11_event_handler(int fd, uint32_t mask, void *data) {
int count = 0;
xcb_generic_event_t *event;