ime: cleanup new_popup_surface listener when destroy

This commit is contained in:
yuiiio 2025-01-19 06:33:43 +09:00 committed by Hiroaki Yamamoto
parent f4d581ef91
commit baab35c469

View file

@ -375,6 +375,7 @@ handle_input_method_destroy(struct wl_listener *listener, void *data)
assert(relay->input_method == data); assert(relay->input_method == data);
wl_list_remove(&relay->input_method_commit.link); wl_list_remove(&relay->input_method_commit.link);
wl_list_remove(&relay->input_method_grab_keyboard.link); wl_list_remove(&relay->input_method_grab_keyboard.link);
wl_list_remove(&relay->input_method_new_popup_surface.link);
wl_list_remove(&relay->input_method_destroy.link); wl_list_remove(&relay->input_method_destroy.link);
relay->input_method = NULL; relay->input_method = NULL;