aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/backend.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/backend/backend.c b/backend/backend.c
index a439a8f4..b9f7caab 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -350,11 +350,6 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
}
#endif
-#if !(WLR_HAS_LIBINPUT_BACKEND || WLR_HAS_DRM_BACKEND)
- wlr_log(WLR_ERROR, "Neither DRM nor libinput backend support is compiled in");
- goto error;
-#endif
-
// Attempt DRM+libinput
#if WLR_HAS_SESSION
session = session_create_and_wait(display);
@@ -389,6 +384,10 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
wlr_log(WLR_ERROR, "Failed to open any DRM device");
goto error;
}
+#else
+ wlr_log(WLR_ERROR, "DRM backend support is not compiled in, "
+ "refusing to start");
+ goto error;
#endif
success: