libweston: Send wl_keyboard.modifiers after wl_keyboard.enter
authorKirill Chibisov <contact@kchibisov.com>
Tue, 16 Jun 2020 22:43:57 +0000 (01:43 +0300)
committerKirill Chibisov <contact@kchibisov.com>
Thu, 9 Jul 2020 14:47:11 +0000 (17:47 +0300)
commitc46c70dac84a4b3030cd05b380f9f410536690fc
tree12c3ca06c80f48b635ef34d8a68a0b44779051ce
parentf7f8f5f1a87dd697ad6de74a885493bcca920cde
libweston: Send wl_keyboard.modifiers after wl_keyboard.enter

The core Wayland protocol explicitly states that wl_keyboard.modifiers
must be send after wl_keyboard.enter.

This commit also changes the behavior of `seat_get_keyboard` to not
send `wl_keyboard.modifiers` in case where seat had pointer focus,
but not keyboard one.

Signed-off-by: Kirill Chibisov <contact@kchibisov.com>
libweston/input.c