aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorBrian Ashworth <RedSoxFan@users.noreply.github.com>2018-09-21 15:28:53 -0400
committerGitHub <noreply@github.com>2018-09-21 15:28:53 -0400
commit04862e2121203965dad834b731a5c32b1d1f4e84 (patch)
tree56f257c17c0d97666c498d2eb35012838c82b451 /sway/commands
parent8a5ff5a4dbcefabaaeae98c1c53befcb986ba117 (diff)
parente5542746734ff20793079f89dfd727abebb877be (diff)
Merge branch 'master' into swaybar-hotplug
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/create_output.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/commands/create_output.c b/sway/commands/create_output.c
index a852c2a0..1c2464ea 100644
--- a/sway/commands/create_output.c
+++ b/sway/commands/create_output.c
@@ -1,6 +1,9 @@
+#include <wlr/config.h>
#include <wlr/backend/multi.h>
#include <wlr/backend/wayland.h>
+#ifdef WLR_HAS_X11_BACKEND
#include <wlr/backend/x11.h>
+#endif
#include "sway/commands.h"
#include "sway/server.h"
#include "log.h"
@@ -14,10 +17,13 @@ static void create_output(struct wlr_backend *backend, void *data) {
if (wlr_backend_is_wl(backend)) {
wlr_wl_output_create(backend);
*done = true;
- } else if (wlr_backend_is_x11(backend)) {
+ }
+#ifdef WLR_HAS_X11_BACKEND
+ else if (wlr_backend_is_x11(backend)) {
wlr_x11_output_create(backend);
*done = true;
}
+#endif
}
/**