diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-28 21:00:26 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-07 19:44:10 +0000 |
| commit | b85e2f40bbc45709e8f47a435ff458f054832a99 (patch) | |
| tree | e6b0ae75d5ffc70d1c53b3f3e4d0f0ca40ca1c25 /ime.c | |
| parent | ime: disable text-input on surface leave (diff) | |
ime: feed committed string to client application
Diffstat (limited to 'ime.c')
| -rw-r--r-- | ime.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
