diff options
author | Tobias Predel <tobias.predel@gmail.com> | 2023-05-15 20:18:22 +0200 |
---|---|---|
committer | Tobias Predel <tobias.predel@gmail.com> | 2023-05-15 20:21:23 +0200 |
commit | 3dc5c7e5e789d061feaea505da66e1a5690973cc (patch) | |
tree | cd8834d01d268f859309dca5851de1d92a8e6aa7 | |
parent | e449c1dec877d8d33286f497e7f7db07bbbfb87e (diff) |
backend_destroy: Similiar logic like DRM backend
In the logic of the DRM backend in backend_destroy, wlr_backend_finish
is called first, then the outputs are destroyed and then the
display->destroy.link is removed from the list.
This commit applies the same order to the headless backend.
-rw-r--r-- | backend/headless/backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c index 34536765..c8d537ab 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -34,14 +34,14 @@ static void backend_destroy(struct wlr_backend *wlr_backend) { return; } - wl_list_remove(&backend->display_destroy.link); + wlr_backend_finish(wlr_backend); struct wlr_headless_output *output, *output_tmp; wl_list_for_each_safe(output, output_tmp, &backend->outputs, link) { wlr_output_destroy(&output->wlr_output); } - wlr_backend_finish(wlr_backend); + wl_list_remove(&backend->display_destroy.link); free(backend); } |