aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-31 20:33:03 +0100
committerKirill Primak <vyivel@eclair.cafe>2024-01-25 14:58:00 +0300
commit3cc43745421efda2090e74d14b6345103ef241d4 (patch)
tree2509f2a3173c941db21270c798187a13b525098b /backend/x11
parent4ad6e6c2983216e91cec9987191c1099e8a108a8 (diff)
backend: stop calling wl_display_terminate()
Leave it up to the compositor to decide what to do when a backend becomes unavailable.
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c4
1 files changed, 2 insertions, 2 deletions
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;