aboutsummaryrefslogtreecommitdiff
path: root/ime.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-04 17:39:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-07 19:44:11 +0000
commitb59d695b2b00157e403399af78b3128848a65e0f (patch)
treef84b9ccf330e033a108785400196e0c0ca302d63 /ime.h
parentime: expand cursor cell-end across multi-cell characters (diff)
ime: add functions to enable/disable IME, simplify code that enables IME
We may want to be able to enable/disable IME run-time, even though we have received an ‘enter’ IME event. This enables us to do that. Also add functions to enable/disable IME on a per-terminal instance basis. A terminal may have multiple seats focusing it, and enabling/disabling IME in a terminal instance enables/disables IME on all those seats. Finally, the code to enable IME is simplified; the *only* surface that can ever receive ‘enter’ IME events is the main grid. All other surfaces are sub-surfaces, without their own keyboard focus.
Diffstat (limited to 'ime.h')
-rw-r--r--ime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ime.h b/ime.h
index d5c96534..7036bbde 100644
--- a/ime.h
+++ b/ime.h
@@ -10,6 +10,9 @@ extern const struct zwp_text_input_v3_listener text_input_listener;
struct seat;
+void ime_enable(struct seat *seat);
+void ime_disable(struct seat *seat);
+
void ime_reset_preedit(struct seat *seat);
void ime_reset_commit(struct seat *seat);
void ime_reset(struct seat *seat);