aboutsummaryrefslogtreecommitdiff
path: root/ime.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-31 11:12:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-31 11:12:16 +0000
commite1eed7bafce536303da814ab9bbf8751a5c542d3 (patch)
tree24c5737a3523d7b08956c6f080c9e632dd84c405 /ime.c
parentnotify: repair debug log: the parameter has been renamed: msg -> body (diff)
parentime: Reset terminal's IME state on text_input.leave (diff)
Merge branch 'reset-term-ime-on-text-input-leave'
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 928a9769..63e8cb9f 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);
}