diff options
author | Simon Ser <contact@emersion.fr> | 2023-10-31 20:33:03 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-25 14:58:00 +0300 |
commit | 3cc43745421efda2090e74d14b6345103ef241d4 (patch) | |
tree | 2509f2a3173c941db21270c798187a13b525098b /backend/x11 | |
parent | 4ad6e6c2983216e91cec9987191c1099e8a108a8 (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.c | 4 |
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; |