mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
Use wl_signal_emit_mutable()
This function fixes segfaults when emitting a signal potentially removes arbitrary listeners.
This commit is contained in:
parent
6c3b35701d
commit
dcd2076f38
5 changed files with 9 additions and 9 deletions
|
|
@ -847,7 +847,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
|
|||
}
|
||||
|
||||
void view_unmap(struct sway_view *view) {
|
||||
wl_signal_emit(&view->events.unmap, view);
|
||||
wl_signal_emit_mutable(&view->events.unmap, view);
|
||||
|
||||
wl_list_remove(&view->surface_new_subsurface.link);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue