mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: crash when exit fcitx5
This commit is contained in:
parent
a4b18c6cc7
commit
4f64541b46
1 changed files with 5 additions and 0 deletions
5
IM.h
5
IM.h
|
|
@ -238,6 +238,11 @@ static void handle_im_destroy(struct wl_listener *listener, void *data) {
|
|||
struct wlr_input_method_v2 *context = data;
|
||||
wlr_log(WLR_INFO, "IM destroy");
|
||||
assert(context == relay->input_method);
|
||||
wl_list_remove(&relay->input_method_commit.link);
|
||||
wl_list_remove(&relay->input_method_grab_keyboard.link);
|
||||
wl_list_remove(&relay->input_method_destroy.link);
|
||||
wl_list_remove(&relay->input_method_new_popup_surface.link);
|
||||
|
||||
relay->input_method = NULL;
|
||||
|
||||
text_input = relay_get_focused_text_input(relay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue