mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Add missing destroy events on automatically destroyed objects
This commit is contained in:
parent
3e651b4642
commit
c0d4d7217b
10 changed files with 21 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue