mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05:00
Send text_input_rectangle requests for text-input
This commit is contained in:
parent
c1675af103
commit
95c0c89cac
7 changed files with 143 additions and 2 deletions
16
terminal.c
16
terminal.c
|
|
@ -2943,3 +2943,19 @@ term_ime_reset(struct terminal *term)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
term_ime_set_cursor_rect(struct terminal *term, int x, int y, int width,
|
||||
int height)
|
||||
{
|
||||
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
||||
tll_foreach(term->wl->seats, it) {
|
||||
if (it->item.kbd_focus == term) {
|
||||
it->item.ime.cursor_rect.pending.x = x;
|
||||
it->item.ime.cursor_rect.pending.y = y;
|
||||
it->item.ime.cursor_rect.pending.width = width;
|
||||
it->item.ime.cursor_rect.pending.height = height;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue