|
|
@ -106,14 +106,12 @@ 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);
|
|
|
|
|
|
|
|
|
|
|
|
if (!env_parse_bool("WLR_LIBINPUT_NO_DEVICES") && wl_list_empty(&backend->devices)) {
|
|
|
|
|
|
|
|
handle_libinput_readable(libinput_fd, WL_EVENT_READABLE, backend);
|
|
|
|
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, "libinput initialization failed, no input devices");
|
|
|
|
wlr_log(WLR_ERROR, "Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check");
|
|
|
|
wlr_log(WLR_ERROR, "Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (backend->input_event) {
|
|
|
|
if (backend->input_event) {
|
|
|
|
wl_event_source_remove(backend->input_event);
|
|
|
|
wl_event_source_remove(backend->input_event);
|
|
|
|