mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
search: reset IME state when entering/exiting search mode
This commit is contained in:
parent
bcfc468fd0
commit
fc2bcf9bc0
1 changed files with 12 additions and 0 deletions
12
search.c
12
search.c
|
|
@ -99,6 +99,12 @@ search_cancel_keep_selection(struct terminal *term)
|
|||
term->is_searching = false;
|
||||
term->render.search_glyph_offset = 0;
|
||||
|
||||
/* Reset IME state */
|
||||
if (term_ime_is_enabled(term)) {
|
||||
term_ime_disable(term);
|
||||
term_ime_enable(term);
|
||||
}
|
||||
|
||||
term_xcursor_update(term);
|
||||
render_refresh(term);
|
||||
}
|
||||
|
|
@ -111,6 +117,12 @@ search_begin(struct terminal *term)
|
|||
search_cancel_keep_selection(term);
|
||||
selection_cancel(term);
|
||||
|
||||
/* Reset IME state */
|
||||
if (term_ime_is_enabled(term)) {
|
||||
term_ime_disable(term);
|
||||
term_ime_enable(term);
|
||||
}
|
||||
|
||||
/* On-demand instantiate wayland surface */
|
||||
struct wl_window *win = term->window;
|
||||
struct wayland *wayl = term->wl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue