From 06b73e175c6e86c49b8d78a668df7a9ae5228739 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 21 Jan 2024 21:43:43 +0800 Subject: [PATCH] chore: destory scene when popup damaged --- sway/input/text_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/input/text_input.c b/sway/input/text_input.c index 901d85fec..817ac34d0 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c @@ -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); }