Add missing destroy events on automatically destroyed objects

This commit is contained in:
Kirill Primak 2024-11-22 20:37:39 +03:00 committed by Simon Ser
parent 3e651b4642
commit c0d4d7217b
10 changed files with 21 additions and 1 deletions

View file

@ -79,6 +79,8 @@ void wlr_xwayland_destroy(struct wlr_xwayland *xwayland) {
return;
}
wl_signal_emit_mutable(&xwayland->events.destroy, NULL);
wl_list_remove(&xwayland->server_destroy.link);
wl_list_remove(&xwayland->server_start.link);
wl_list_remove(&xwayland->server_ready.link);
@ -105,6 +107,7 @@ struct wlr_xwayland *wlr_xwayland_create_with_server(struct wl_display *wl_displ
xwayland->wl_display = wl_display;
xwayland->compositor = compositor;
wl_signal_init(&xwayland->events.destroy);
wl_signal_init(&xwayland->events.new_surface);
wl_signal_init(&xwayland->events.ready);
wl_signal_init(&xwayland->events.remove_startup_info);