mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
parent
13b45db13e
commit
ed3e70a9c7
1 changed files with 4 additions and 8 deletions
12
ime.c
12
ime.c
|
|
@ -385,17 +385,13 @@ ime_enable(struct seat *seat)
|
||||||
if (unlikely(seat->wayl->text_input_manager == NULL))
|
if (unlikely(seat->wayl->text_input_manager == NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
struct terminal *term = seat->kbd_focus;
|
|
||||||
|
|
||||||
/* TODO: we’ve actually seen text-input::enter without first
|
|
||||||
* seeing keyboard::enter... so perhaps we should check for this,
|
|
||||||
* and... do what? Ignore IME completely, or do we need to call
|
|
||||||
* ime_enable() from keyboard::enter too? */
|
|
||||||
xassert(term != NULL);
|
|
||||||
|
|
||||||
if (!seat->ime.focused)
|
if (!seat->ime.focused)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
struct terminal *term = seat->kbd_focus;
|
||||||
|
if (term == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!term->ime_enabled)
|
if (!term->ime_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue