wayland: accept active modifiers even if they aren't physically held

We don't care about the physical state of keys, only if they are
effective or not and whether they should affect key processing.
This commit is contained in:
llyyr 2024-01-13 21:35:46 +05:30 committed by Dudemanguy
parent 02533e5928
commit bd35dc8ce7
1 changed files with 1 additions and 1 deletions

View File

@ -1584,7 +1584,7 @@ static int get_mods(struct vo_wayland_state *wl)
xkb_mod_index_t index = xkb_keymap_mod_get_index(wl->xkb_keymap, mod_names[n]);
if (index != XKB_MOD_INVALID
&& xkb_state_mod_index_is_active(wl->xkb_state, index,
XKB_STATE_MODS_DEPRESSED))
XKB_STATE_MODS_EFFECTIVE))
modifiers |= mods[n];
}
return modifiers;