mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
backend/libinput: Fix call of handle_libinput_readable() when WLR_LIBINPUT_NO_DEVICES is set
This commit is contained in:
parent
325d843814
commit
35c3194ae5
@ -106,13 +106,11 @@ static bool backend_start(struct wlr_backend *wlr_backend) {
|
|||||||
|
|
||||||
int libinput_fd = libinput_get_fd(backend->libinput_context);
|
int libinput_fd = libinput_get_fd(backend->libinput_context);
|
||||||
|
|
||||||
|
handle_libinput_readable(libinput_fd, WL_EVENT_READABLE, backend);
|
||||||
if (!env_parse_bool("WLR_LIBINPUT_NO_DEVICES") && wl_list_empty(&backend->devices)) {
|
if (!env_parse_bool("WLR_LIBINPUT_NO_DEVICES") && wl_list_empty(&backend->devices)) {
|
||||||
handle_libinput_readable(libinput_fd, WL_EVENT_READABLE, backend);
|
wlr_log(WLR_ERROR, "libinput initialization failed, no input devices");
|
||||||
if (wl_list_empty(&backend->devices)) {
|
wlr_log(WLR_ERROR, "Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check");
|
||||||
wlr_log(WLR_ERROR, "libinput initialization failed, no input devices");
|
return false;
|
||||||
wlr_log(WLR_ERROR, "Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (backend->input_event) {
|
if (backend->input_event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user