mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
chore: destory scene when popup damaged
This commit is contained in:
parent
be9a30d555
commit
06b73e175c
1 changed files with 3 additions and 0 deletions
|
|
@ -406,6 +406,9 @@ static void handle_im_popup_destroy(struct wl_listener *listener, void *data) {
|
|||
wl_list_remove(&popup->popup_surface_commit.link);
|
||||
wl_list_remove(&popup->popup_destroy.link);
|
||||
wl_list_remove(&popup->link);
|
||||
if (popup->scene_tree != NULL) {
|
||||
wlr_scene_node_destroy(&popup->scene_tree->node);
|
||||
}
|
||||
|
||||
free(popup);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue