Clarify the order of wl_keyboard.modifiers
authorKirill Chibisov <contact@kchibisov.com>
Sat, 23 May 2020 23:28:31 +0000 (02:28 +0300)
committerDaniel Stone <daniels@collabora.com>
Fri, 12 Jun 2020 21:15:11 +0000 (21:15 +0000)
commit4aa6eb868a8646b99c5b552a48aa31043530a269
tree550eb2ea0a5fef46c586408e95777ca174b1d14a
parenta61ae8eca858f866636eb2721f42ca0fa7fd06f8
Clarify the order of wl_keyboard.modifiers

Consider that we set the modifier for the modifier key as well, and that
you have the option to change your layout when both shifts pressed. This
realized by making the shift keys produce 'Group_switch' when you press
the shift key and the shift modifier is already active. So sending modifier
before the key event will result in 'Group_switch' each time you press
shift.

That being said, the order of modifiers should be updated after the
key/enter event, so it'll only affect future keypresses, not the current one.

See: https://lists.x.org/archives/xorg-devel/2014-July/043110.html

Signed-off-by: Kirill Chibisov <contact@kchibisov.com>
protocol/wayland.xml