mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -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
|
|
@ -132,7 +132,7 @@ static int x11_event(int fd, uint32_t mask, void *data) {
|
|||
if (mask & WL_EVENT_ERROR) {
|
||||
wlr_log(WLR_ERROR, "Failed to read from X11 server");
|
||||
}
|
||||
wl_display_terminate(x11->wl_display);
|
||||
wlr_backend_destroy(&x11->backend);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ static int x11_event(int fd, uint32_t mask, void *data) {
|
|||
int ret = xcb_connection_has_error(x11->xcb);
|
||||
if (ret != 0) {
|
||||
wlr_log(WLR_ERROR, "X11 connection error (%d)", ret);
|
||||
wl_display_terminate(x11->wl_display);
|
||||
wlr_backend_destroy(&x11->backend);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue