From 95c0c89cac5cef4ea73a1391b8ecd20f5dcfb2ff Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Sun, 20 Dec 2020 15:01:21 -0700 Subject: Send text_input_rectangle requests for text-input --- terminal.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 5344cc53..6f8130fa 100644 --- a/terminal.c +++ b/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 +} -- cgit v1.3