summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-16 23:23:08 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-17 11:03:32 -0600
commit6bcd5d8d87a972f72e23f37b94cc59d77d76c4cc (patch)
tree4b7f6fe77013707895689d111a7ae7c932315ab5
parent7611dc91d7f5211071fe1ecca3179a9ca6be9f2e (diff)
do not explicitly destroy some wlroots interfaces
they are destroyed when the wayland display is destroyed
-rw-r--r--dwl.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dwl.c b/dwl.c
index 3fcdf07..5347af6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -634,15 +634,12 @@ cleanup(void)
kill(child_pid, SIGTERM);
waitpid(child_pid, NULL, 0);
}
- wlr_backend_destroy(backend);
- wlr_scene_node_destroy(&scene->tree.node);
- wlr_renderer_destroy(drw);
- wlr_allocator_destroy(alloc);
wlr_xcursor_manager_destroy(cursor_mgr);
- wlr_cursor_destroy(cursor);
wlr_output_layout_destroy(output_layout);
- wlr_seat_destroy(seat);
wl_display_destroy(dpy);
+ /* Destroy after the wayland display (when the monitors are already destroyed)
+ to avoid destroying them with an invalid scene output. */
+ wlr_scene_node_destroy(&scene->tree.node);
}
void