From 6a7234a6ca770d431355b86cf6fbddac36945563 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 24 Mar 2025 14:06:13 +0800 Subject: [PATCH] fix: miss clean input_method listerner --- maomao.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maomao.c b/maomao.c index cd29391e..ed3540fc 100644 --- a/maomao.c +++ b/maomao.c @@ -2145,6 +2145,10 @@ cleanup(void) { waitpid(child_pid, NULL, 0); } +#ifdef IM + wl_list_remove(&input_relay->input_method_new.link); + wl_list_remove(&input_relay->text_input_new.link); +#endif destroykeyboardgroup(&kb_group->destroy, NULL); wlr_backend_destroy(backend); wlr_scene_node_destroy(&scene->tree.node);