mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
ime: fix initial cursor rectangle being reported as 0,0,0,0
Closes #1994
This commit is contained in:
parent
eb9357709b
commit
cd4ee8ae49
2 changed files with 13 additions and 0 deletions
10
ime.c
10
ime.c
|
|
@ -68,6 +68,16 @@ enter(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
|||
|
||||
/* The main grid is the *only* input-receiving surface we have */
|
||||
seat->ime_focus = term;
|
||||
|
||||
const struct coord *cursor = &term->grid->cursor.point;
|
||||
|
||||
term_ime_set_cursor_rect(
|
||||
term,
|
||||
term->margins.left + cursor->col * term->cell_width,
|
||||
term->margins.top + cursor->row * term->cell_height,
|
||||
term->cell_width,
|
||||
term->cell_height);
|
||||
|
||||
ime_enable(seat);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue