From b85e2f40bbc45709e8f47a435ff458f054832a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 28 Nov 2020 22:00:26 +0100 Subject: [PATCH] ime: feed committed string to client application --- ime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ime.c b/ime.c index 1619e584..eda975c5 100644 --- a/ime.c +++ b/ime.c @@ -1,5 +1,7 @@ #include "ime.h" +#include + #include "text-input-unstable-v3.h" #define LOG_MODULE "ime" @@ -72,7 +74,9 @@ static void commit_string(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, const char *text) { + struct seat *seat = data; LOG_DBG("commit: text=%s", text); + term_to_slave(seat->kbd_focus, text, strlen(text)); } static void