text_input: don't destroy scene_node twice

This commit is contained in:
llyyr 2024-02-28 01:57:56 +05:30 committed by Simon Ser
parent 829c75b9c9
commit 469411d484

View File

@ -293,10 +293,6 @@ static void input_popup_update(struct sway_input_popup *popup) {
return; return;
} }
wlr_scene_node_destroy(&popup->scene_tree->node);
wlr_scene_node_destroy(popup->desc.relative);
popup->scene_tree = NULL;
bool cursor_rect = text_input->input->current.features bool cursor_rect = text_input->input->current.features
& WLR_TEXT_INPUT_V3_FEATURE_CURSOR_RECTANGLE; & WLR_TEXT_INPUT_V3_FEATURE_CURSOR_RECTANGLE;
struct wlr_surface *focused_surface = text_input->input->focused_surface; struct wlr_surface *focused_surface = text_input->input->focused_surface;