mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix compilation against wlroots without X11 backend
This commit is contained in:
parent
057635f1a3
commit
37e51a20cc
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
|
#include <wlr/config.h>
|
||||||
#include <wlr/backend/multi.h>
|
#include <wlr/backend/multi.h>
|
||||||
#include <wlr/backend/wayland.h>
|
#include <wlr/backend/wayland.h>
|
||||||
|
#ifdef WLR_HAS_X11_BACKEND
|
||||||
#include <wlr/backend/x11.h>
|
#include <wlr/backend/x11.h>
|
||||||
|
#endif
|
||||||
#include "sway/commands.h"
|
#include "sway/commands.h"
|
||||||
#include "sway/server.h"
|
#include "sway/server.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
@ -14,10 +17,13 @@ static void create_output(struct wlr_backend *backend, void *data) {
|
||||||
if (wlr_backend_is_wl(backend)) {
|
if (wlr_backend_is_wl(backend)) {
|
||||||
wlr_wl_output_create(backend);
|
wlr_wl_output_create(backend);
|
||||||
*done = true;
|
*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);
|
wlr_x11_output_create(backend);
|
||||||
*done = true;
|
*done = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue