aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2020-12-20 22:01:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-29 18:39:48 +0000
commit8f0a3ee7a9cbb1b0fc8011875a0895bfd331e0a8 (patch)
treea08d343da9f4fa606c4708f751dbb98a4a9d8f7f /terminal.c
parentci: freebsd: don’t need -Wno-missing-braces anymore (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 1208474d..c65fe974 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2895,3 +2895,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
+}