ime: don’t commit IME changes when we don’t have IME focus

Fixes log spamming in Sway:

  00:54:07.780 [DEBUG] [wlr] [types/wlr_text_input_v3.c:181] Text input commit received without focus
  00:54:07.780 [INFO] [sway/input/text_input.c:127] Inactive text input tried to commit an update

Closes #384
This commit is contained in:
Daniel Eklöf 2021-03-02 09:01:40 +01:00
parent c3880af593
commit 3f19ee4d92
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 0 deletions

View file

@ -271,6 +271,7 @@ struct seat {
} pending;
} surrounding;
bool focused;
uint32_t serial;
} ime;
#endif