aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-rw-r--r--rootston/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootston/main.c b/rootston/main.c
index aa20dbba..2f913272 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -5,6 +5,7 @@
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/backend/headless.h>
+#include <wlr/backend/multi.h>
#include <wlr/render.h>
#include <wlr/render/gles2.h>
#include <wlr/util/log.h>
@@ -32,6 +33,12 @@ int main(int argc, char **argv) {
assert(server.backend = wlr_backend_autocreate(server.wl_display));
+ if (wlr_multi_is_empty(server.backend)) {
+ wlr_log(L_ERROR, "could not start backend");
+ wlr_backend_destroy(server.backend);
+ return 1;
+ }
+
assert(server.renderer = wlr_gles2_renderer_create(server.backend));
server.data_device_manager =
wlr_data_device_manager_create(server.wl_display);