mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
ime: Reset terminal's IME state on text_input.leave
To reproduce issue: - Launch an IME from inside foot - Type in some preedit text - Use Ctrl-C to close the IME - IME text stays in terminal until focus is changed
This commit is contained in:
parent
c4363ef336
commit
1515b7e44b
2 changed files with 8 additions and 0 deletions
|
|
@ -61,6 +61,8 @@
|
||||||
before sending the new dimensions to the client application. The
|
before sending the new dimensions to the client application. The
|
||||||
timing can be tweaked, or completely disabled, by setting
|
timing can be tweaked, or completely disabled, by setting
|
||||||
`resize-delay-ms` (https://codeberg.org/dnkl/foot/issues/301).
|
`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
|
### Deprecated
|
||||||
|
|
@ -75,6 +77,7 @@
|
||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
* [craigbarnes](https://codeberg.org/craigbarnes)
|
* [craigbarnes](https://codeberg.org/craigbarnes)
|
||||||
|
* [tdeo](https://codeberg.org/tdeo)
|
||||||
|
|
||||||
|
|
||||||
## 1.6.3
|
## 1.6.3
|
||||||
|
|
|
||||||
5
ime.c
5
ime.c
|
|
@ -39,6 +39,11 @@ leave(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
{
|
{
|
||||||
struct seat *seat = data;
|
struct seat *seat = data;
|
||||||
LOG_DBG("leave: seat=%s", seat->name);
|
LOG_DBG("leave: seat=%s", seat->name);
|
||||||
|
|
||||||
|
struct terminal *term = seat->kbd_focus;
|
||||||
|
if (term != NULL)
|
||||||
|
term_ime_reset(term);
|
||||||
|
|
||||||
ime_disable(seat);
|
ime_disable(seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue