diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-23 15:52:08 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-25 16:15:29 +0000 |
commit | fb4fb3bac2c7a73baf773cc6a0bba486f1c227b4 (patch) | |
tree | c3cec141d918592bf75239b4cf7f87dd4db7c86d | |
parent | f839d6896f100aedf49390abc499413d5f1c1d95 (diff) |
backend: error out when missing DRM and libinput in wlr_backend_autocreate()
Instead of returning an empty multi backend, fail with a clear
error when both the DRM and libinput backends are disabled.
-rw-r--r-- | backend/backend.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c index e733d7ab..899e6f37 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -342,6 +342,11 @@ 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 session = session_create_and_wait(display); if (!session) { |