aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 13:26:53 -0400
committerGitHub <noreply@github.com>2018-04-03 13:26:53 -0400
commit31c6ce13cde01bbb3921a520b6a8db6427da3094 (patch)
tree516c9f02267a763c1164f5a692800b7c0e1104a7 /backend/x11
parentd88f3c1eb33df8df5649177660ae3b9f51d5921a (diff)
parent60f07ee3210993d2b8437d908a9f7a7518d7f0b5 (diff)
Merge pull request #809 from emersion/x11-backend-fix-has-xcb-xkb
backend/x11: fix WLR_HAS_XCB_XKB always undefined
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/input_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c
index 32b1a1ac..6c7c444c 100644
--- a/backend/x11/input_device.c
+++ b/backend/x11/input_device.c
@@ -1,3 +1,4 @@
+#include <wlr/config.h>
#include <wlr/interfaces/wlr_input_device.h>
#include <wlr/interfaces/wlr_keyboard.h>
#include <wlr/interfaces/wlr_pointer.h>
@@ -8,6 +9,9 @@
#elif __FreeBSD__
#include <dev/evdev/input-event-codes.h>
#endif
+#ifdef WLR_HAS_XCB_XKB
+#include <xcb/xkb.h>
+#endif
#include "backend/x11.h"
#include "util/signal.h"