You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1827615 - [Wayland] Fix Level3 and Level5 mappings. r=stransky
libxkbcommon actually uses the strings "LevelThree" and "LevelFive" for
Level3 / Level5 respectively. To prevent this mixup from happening again,
use the defines from libxkbcommon and add fallbacks on our side as well.
Furthermore, GDK does not support Level3 / Level5 vmods in GdkModifierType,
and we also can't expect bitwise compatibility between GdkModifierType and
the opaque `(1 << xkb_keymap_mod_get_index(...))` result. Instead, use the
libxkbcommon API to reverse the vmod->rmod mapping GDK does internally,
and match against that. Do no translate the META, SUPER and HYPER vmods,
which are natively supported by GDK, because they otherwise collide with
rmods like ALT, which we don't want to happen.
See also: xkbcommon/libxkbcommon#732
Differential Revision: https://phabricator.services.mozilla.com/D250529
UltraBlame original commit: 4ba0815eadf79c74b971d19a6f057be121ef5626
0 commit comments