Stop ft-screens without an abort

wlroots asserts that nothing still listens to its xdg-shell and decoration
globals when the display goes, so every desktop stop ended with ft-screens
aborting and leaving a core dump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DeeJanuzandClaude Opus 5.5 committed 2026-09-29 23:31:54 -06:00
1 parent 6122b7eb15
commit 691b66cd87
1 file changed
+3
+3
View File
@@ -657,6 +657,9 @@ int main(int argc, char **argv) {
wlr_log(WLR_INFO, "stopping");
if (s.child > 0) kill(s.child, SIGTERM);
wl_display_destroy_clients(s.display);
// wlroots asserts that nothing still listens to its globals when they go.
wl_list_remove(&s.new_toplevel.link);
wl_list_remove(&s.new_decoration.link);
ft_vr_shutdown();
wl_display_destroy(s.display);
return 0;