mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Assert (almost all) signals have no attached listeners on destroy
This commit is contained in:
parent
b03b05d2b3
commit
8f56f7ca43
79 changed files with 518 additions and 9 deletions
|
|
@ -81,6 +81,11 @@ void wlr_xwayland_destroy(struct wlr_xwayland *xwayland) {
|
|||
|
||||
wl_signal_emit_mutable(&xwayland->events.destroy, NULL);
|
||||
|
||||
assert(wl_list_empty(&xwayland->events.destroy.listener_list));
|
||||
assert(wl_list_empty(&xwayland->events.new_surface.listener_list));
|
||||
assert(wl_list_empty(&xwayland->events.ready.listener_list));
|
||||
assert(wl_list_empty(&xwayland->events.remove_startup_info.listener_list));
|
||||
|
||||
wl_list_remove(&xwayland->server_destroy.link);
|
||||
wl_list_remove(&xwayland->server_start.link);
|
||||
wl_list_remove(&xwayland->server_ready.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue