backend/wayland: fix keyboard keys not pressed/released when focus changes

This commit is contained in:
emersion 2018-06-03 13:18:57 +01:00
parent d3670dfeff
commit 551700e887
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 41 additions and 1 deletions

View file

@ -89,7 +89,7 @@ enum wlr_key_state {
struct wlr_event_keyboard_key {
uint32_t time_msec;
uint32_t keycode;
bool update_state;
bool update_state; // if backend doesn't update modifiers on its own
enum wlr_key_state state;
};