mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
tree/container: remove event listeners on destroy
Change begin_destroy to remove event listeners before the final destroy, since otherwise event listeners would be removed twice, which crashes. This fixes a crash in wlroots listener checks. See #8509.
This commit is contained in:
parent
53126cdceb
commit
ab2e1f5817
2 changed files with 18 additions and 2 deletions
|
|
@ -95,6 +95,7 @@ struct sway_container {
|
|||
|
||||
struct wl_listener output_enter;
|
||||
struct wl_listener output_leave;
|
||||
struct wl_listener output_handler_destroy;
|
||||
|
||||
struct sway_container_state current;
|
||||
struct sway_container_state pending;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue