mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
chore: apply the destory scene way suggested
This commit is contained in:
parent
4790391a02
commit
3f4c0aff13
1 changed files with 10 additions and 2 deletions
|
|
@ -276,9 +276,17 @@ static void input_popup_update(struct sway_input_popup *popup) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!popup->popup_surface->surface->mapped) {
|
||||
if (popup->scene_tree != NULL) {
|
||||
wlr_scene_node_destroy(&popup->scene_tree->node);
|
||||
popup->scene_tree = NULL;
|
||||
popup->desc.view = NULL;
|
||||
}
|
||||
if (popup->desc.relative != NULL) {
|
||||
wlr_scene_node_destroy(popup->desc.relative);
|
||||
popup->desc.relative = NULL;
|
||||
}
|
||||
popup->desc.view = NULL;
|
||||
|
||||
if (!popup->popup_surface->surface->mapped) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue