aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md7
-rw-r--r--ime.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1376197b..339a9835 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,12 +25,19 @@
## 1.6.4
### Added
### Changed
+
+* The IME state no longer stays stuck in the terminal if the IME goes
+ away during preedit.
+
+
### Deprecated
### Removed
### Fixed
### Security
### Contributors
+* [tdeo](https://codeberg.org/tdeo)
+
## 1.6.3
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);
}