mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05: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;
|
||||
}
|
||||
|
||||
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 */
|
||||
if (seat->ime.preedit.cells != NULL) {
|
||||
ime_reset_preedit(seat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue