backend: stop calling wl_display_terminate()

Leave it up to the compositor to decide what to do when a backend
becomes unavailable.
This commit is contained in:
Simon Ser 2023-10-31 20:33:03 +01:00 committed by Kirill Primak
parent 4ad6e6c298
commit 3cc4374542
4 changed files with 6 additions and 6 deletions

View file

@ -51,7 +51,7 @@ static int handle_libinput_readable(int fd, uint32_t mask, void *_backend) {
int ret = libinput_dispatch(backend->libinput_context);
if (ret != 0) {
wlr_log(WLR_ERROR, "Failed to dispatch libinput: %s", strerror(-ret));
wl_display_terminate(backend->display);
wlr_backend_destroy(&backend->backend);
return 0;
}
struct libinput_event *event;