mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
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.
This commit is contained in:
parent
f839d6896f
commit
fb4fb3bac2
1 changed files with 5 additions and 0 deletions
|
@ -342,6 +342,11 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
// Attempt DRM+libinput
|
||||||
session = session_create_and_wait(display);
|
session = session_create_and_wait(display);
|
||||||
if (!session) {
|
if (!session) {
|
||||||
|
|
Loading…
Reference in a new issue