diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-29 18:32:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-29 18:32:59 +0000 |
| commit | 87d6739c030ef620662b6929b7fd1749f22fcb25 (patch) | |
| tree | 576beb30208c2f301dd704cca80d543c11f19190 /terminal.c | |
| parent | Merge branch 'drop-wno-missing-braces-from-freebsd' (diff) | |
| parent | Send text_input_rectangle requests for text-input (diff) | |
Merge branch 'text-input-rectangle'
Closes #309
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 +} |
