aboutsummaryrefslogtreecommitdiff
path: root/ime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ime.c')
-rw-r--r--ime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ime.c b/ime.c
index d420fc9f..d851c26f 100644
--- a/ime.c
+++ b/ime.c
@@ -39,6 +39,11 @@ leave(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
{
struct seat *seat = data;
LOG_DBG("leave: seat=%s", seat->name);
+
+ struct terminal *term = seat->kbd_focus;
+ if (term != NULL)
+ term_ime_reset(term);
+
ime_disable(seat);
}