mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
backend/libinput: Fix call of handle_libinput_readable() when WLR_LIBINPUT_NO_DEVICES is set
(cherry picked from commit 35c3194ae5)
This commit is contained in:
parent
d4ff45ec8d
commit
8fe2dd82b1
1 changed files with 4 additions and 6 deletions
|
|
@ -106,14 +106,12 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
|
|||
|
||||
int libinput_fd = libinput_get_fd(backend->libinput_context);
|
||||
|
||||
if (!env_parse_bool("WLR_LIBINPUT_NO_DEVICES") && wl_list_empty(&backend->devices)) {
|
||||
handle_libinput_readable(libinput_fd, WL_EVENT_READABLE, backend);
|
||||
if (wl_list_empty(&backend->devices)) {
|
||||
if (!env_parse_bool("WLR_LIBINPUT_NO_DEVICES") && wl_list_empty(&backend->devices)) {
|
||||
wlr_log(WLR_ERROR, "libinput initialization failed, no input devices");
|
||||
wlr_log(WLR_ERROR, "Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
struct wl_event_loop *event_loop =
|
||||
wl_display_get_event_loop(backend->display);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue