aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ime.c4
1 files changed, 4 insertions, 0 deletions
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 <string.h>
+
#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