Merge branch 'reset-term-ime-on-text-input-leave'

This commit is contained in:
Daniel Eklöf 2021-01-31 12:12:16 +01:00
commit e1eed7bafc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 8 additions and 0 deletions

View file

@ -61,6 +61,8 @@
before sending the new dimensions to the client application. The
timing can be tweaked, or completely disabled, by setting
`resize-delay-ms` (https://codeberg.org/dnkl/foot/issues/301).
* The IME state no longer stays stuck in the terminal if the IME goes
away during preedit.
### Deprecated
@ -75,6 +77,7 @@
### Contributors
* [craigbarnes](https://codeberg.org/craigbarnes)
* [tdeo](https://codeberg.org/tdeo)
## 1.6.3

5
ime.c
View file

@ -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);
}