From 3cc43745421efda2090e74d14b6345103ef241d4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 31 Oct 2023 20:33:03 +0100 Subject: backend: stop calling wl_display_terminate() Leave it up to the compositor to decide what to do when a backend becomes unavailable. --- backend/x11/backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/x11') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 5c5aa7e8..c650712f 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -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; -- cgit v1.2.3