aboutsummaryrefslogtreecommitdiff
path: root/ime.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-23 12:56:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-25 08:36:07 +0000
commit13b45db13e134c81ea72d1d70bf782ecd2445900 (patch)
tree01205a986a69c9270da2ac737a8caebb9c0da6b6 /ime.h
parentime: codespell: actaually -> actually (diff)
ime: don’t pass ‘term’ to ime_update_cursor_rect()
In all instances where we call ime_update_cursor_rect(), the ‘term’ argument is the same as seat->kbd_focus. So, let ime_update_cursor_rect() use that directly instead. Also make ime_send_cursor_rect() static (i.e. local to ime.c).
Diffstat (limited to 'ime.h')
-rw-r--r--ime.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ime.h b/ime.h
index 01438a5a..2aa4efe4 100644
--- a/ime.h
+++ b/ime.h
@@ -13,10 +13,9 @@ struct terminal;
void ime_enable(struct seat *seat);
void ime_disable(struct seat *seat);
-void ime_update_cursor_rect(struct seat *seat, struct terminal *term);
+void ime_update_cursor_rect(struct seat *seat);
void ime_reset_pending_preedit(struct seat *seat);
void ime_reset_pending_commit(struct seat *seat);
void ime_reset_pending(struct seat *seat);
void ime_reset_preedit(struct seat *seat);
-void ime_send_cursor_rect(struct seat *seat, struct terminal *term);