term: cache kbd-focused state, just like we cache visual focus state

There's one difference however, when we receive a kbd unfocus call,
*all* seats must have us unfocused before we actually change the
state.
This commit is contained in:
Daniel Eklöf 2020-07-11 09:04:46 +02:00
parent ed0cb06b48
commit 8c72e9434e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 2 deletions

View file

@ -336,6 +336,7 @@ struct terminal {
struct wayland *wl;
struct wl_window *window;
bool visual_focus;
bool kbd_focus;
enum term_surface active_surface;
struct {