mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-07 08:21:02 -04:00
ime: log warning on text-input::done() received without keyboard focus
This commit is contained in:
parent
ed3e70a9c7
commit
adb5a344fe
1 changed files with 9 additions and 0 deletions
9
ime.c
9
ime.c
|
|
@ -111,6 +111,15 @@ done(void *data, struct zwp_text_input_v3 *zwp_text_input_v3,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (term == NULL) {
|
||||||
|
static bool have_warned = false;
|
||||||
|
if (!have_warned) {
|
||||||
|
LOG_WARN(
|
||||||
|
"%s: text-input::done() received on seat that isn't "
|
||||||
|
"focusing a terminal window", seat->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 1. Delete existing pre-edit text */
|
/* 1. Delete existing pre-edit text */
|
||||||
if (seat->ime.preedit.cells != NULL) {
|
if (seat->ime.preedit.cells != NULL) {
|
||||||
ime_reset_preedit(seat);
|
ime_reset_preedit(seat);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue