From 5c8d52080750b81752595ac8f00fbacece17978b Mon Sep 17 00:00:00 2001 From: CismonX Date: Mon, 5 Oct 2026 15:52:06 +0800 Subject: ime: reset view and cancel selection on input The text input area should be visible when using input methods. This also keeps the behavior consistent with the wl_keyboard.key event handler. --- ime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ime.c b/ime.c index 388ed097..7ec80bda 100644 --- a/ime.c +++ b/ime.c @@ -12,6 +12,7 @@ #include "char32.h" #include "render.h" #include "search.h" +#include "selection.h" #include "terminal.h" #include "util.h" #include "wayland.h" @@ -185,8 +186,11 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, if (term != NULL) { if (term->is_searching) render_refresh_search(term); - else + else { + term_reset_view(term); + selection_cancel(term); render_refresh(term); + } } } -- cgit v1.3