ime: log warning on text-input::done() received without keyboard focus

This commit is contained in:
Daniel Eklöf 2021-03-23 14:02:05 +01:00
parent ed3e70a9c7
commit adb5a344fe
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

9
ime.c
View file

@ -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);