mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
4ad6e6c298
commit
3cc4374542
4 changed files with 6 additions and 6 deletions
|
|
@ -59,7 +59,7 @@ static int dispatch_events(int fd, uint32_t mask, void *data) {
|
|||
if (mask & WL_EVENT_ERROR) {
|
||||
wlr_log(WLR_ERROR, "Failed to read from remote Wayland display");
|
||||
}
|
||||
wl_display_terminate(wl->local_display);
|
||||
wlr_backend_destroy(&wl->backend);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ static int dispatch_events(int fd, uint32_t mask, void *data) {
|
|||
|
||||
if (count < 0) {
|
||||
wlr_log(WLR_ERROR, "Failed to dispatch remote Wayland display");
|
||||
wl_display_terminate(wl->local_display);
|
||||
wlr_backend_destroy(&wl->backend);
|
||||
return 0;
|
||||
}
|
||||
return count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue