aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/input_device.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 13:12:52 -0400
committeremersion <contact@emersion.fr>2018-04-03 13:12:52 -0400
commit60f07ee3210993d2b8437d908a9f7a7518d7f0b5 (patch)
tree516c9f02267a763c1164f5a692800b7c0e1104a7 /backend/x11/input_device.c
parentd88f3c1eb33df8df5649177660ae3b9f51d5921a (diff)
backend/x11: fix WLR_HAS_XCB_XKB always undefined
Diffstat (limited to 'backend/x11/input_device.c')
-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"