mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
ime: feed committed string to client application
This commit is contained in:
parent
e97024116e
commit
b85e2f40bb
1 changed files with 4 additions and 0 deletions
4
ime.c
4
ime.c
|
|
@ -1,5 +1,7 @@
|
||||||
#include "ime.h"
|
#include "ime.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "text-input-unstable-v3.h"
|
#include "text-input-unstable-v3.h"
|
||||||
|
|
||||||
#define LOG_MODULE "ime"
|
#define LOG_MODULE "ime"
|
||||||
|
|
@ -72,7 +74,9 @@ static void
|
||||||
commit_string(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
commit_string(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
const char *text)
|
const char *text)
|
||||||
{
|
{
|
||||||
|
struct seat *seat = data;
|
||||||
LOG_DBG("commit: text=%s", text);
|
LOG_DBG("commit: text=%s", text);
|
||||||
|
term_to_slave(seat->kbd_focus, text, strlen(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue