aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2020-12-20 22:01:21 +0000
committerTadeo Kondrak <me@tadeo.ca>2021-01-29 05:22:01 +0000
commit95c0c89cac5cef4ea73a1391b8ecd20f5dcfb2ff (patch)
treea8a92980854f4fdf84cc2892605c9bc4513da1c8 /terminal.c
parentMerge branch 'delay-tiocswinsz-on-interactive-resize' (diff)
Send text_input_rectangle requests for text-input
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c16
1 files changed, 16 insertions, 0 deletions
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
+}