From e8ffb05bc7fb3b996752f345b77af4b757f69776 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 23 Mar 2021 13:03:07 +0100 Subject: ime: move preedit state from terminal struct to the seat struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures different seat’s don’t step on each others IME pre-edit state. It also removes most dependencies on having a valid term pointer for many IME operations. We’re still not all the way, since we support disabling IME with a private mode, which is per terminal, not seat. Thus, we still require the seat to have keyboard focus on one of our windows. Closes #324. But note that *rendering* of multiple seat’s IME pre-edit strings is still broken. --- pgo/pgo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pgo') diff --git a/pgo/pgo.c b/pgo/pgo.c index 933d100c..ec8a7883 100644 --- a/pgo/pgo.c +++ b/pgo/pgo.c @@ -129,6 +129,7 @@ void cmd_scrollback_down(struct terminal *term, int rows) {} void ime_enable(struct seat *seat) {} void ime_disable(struct seat *seat) {} +void ime_reset_preedit(struct seat *seat) {} void notify_notify(const struct terminal *term, const char *title, const char *body) -- cgit v1.3