keyboard: Send modifers after key - #2191
Conversation
Fixes Smithay#2184. Smithay@be920fb reversed the order of these. But this doesn't appear to be correct. I'm not sure exactly why the bug happens here, but sending `modifiers` after `key` seems to match Gnome.
|
https://wayland.app/protocols/wayland#wl_keyboard:event:key
(emph mine) seems this is right |
|
Right. So there may be some other issue this was meant to fix, but this wasn't the right solution, anyway. |
|
Since this is in the shared keyboard code, it also affects #2159 (which makes virtual input use it). I was able to reproduce it for accented characters using It looks like in #2073, the order was swapped about halfway through.
smithay/src/input/keyboard/mod.rs Lines 1701 to 1744 in c952ea8
smithay/src/input/keyboard/mod.rs Lines 1532 to 1565 in 804075b I'm not entirely sure what this means overall though, it's a bit mind-twisting to reason about. But yeah, this PR seems correct if I understand it correctly. |
Description
Fixes #2184.
be920fb reversed the order of these. But this doesn't appear to be correct.
I'm not sure exactly why the bug happens here, but sending
modifiersafterkeyseems to match Gnome.@hojjatabdollahi what was this meant to fix? If there was some issue here, it may need a different solution.
Checklist