mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
ime: disable text-input on surface leave
This commit is contained in:
parent
148bb1ff13
commit
e97024116e
1 changed files with 4 additions and 2 deletions
6
ime.c
6
ime.c
|
|
@ -48,7 +48,7 @@ enter(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
zwp_text_input_v3_commit(seat->wl_text_input);
|
zwp_text_input_v3_commit(seat->wl_text_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -57,13 +57,15 @@ leave(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
{
|
{
|
||||||
struct seat *seat = data;
|
struct seat *seat = data;
|
||||||
LOG_DBG("leave: seat=%s", seat->name);
|
LOG_DBG("leave: seat=%s", seat->name);
|
||||||
|
zwp_text_input_v3_disable(seat->wl_text_input);
|
||||||
|
zwp_text_input_v3_commit(seat->wl_text_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
preedit_string(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
preedit_string(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
const char *text, int32_t cursor_begin, int32_t cursor_end)
|
const char *text, int32_t cursor_begin, int32_t cursor_end)
|
||||||
{
|
{
|
||||||
LOG_DBG("preedit-strig: text=%s, begin=%d, end=%d", text, cursor_begin, cursor_end);
|
LOG_DBG("preedit-string: text=%s, begin=%d, end=%d", text, cursor_begin, cursor_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue