refactor: EIKeyState, compare to the current state when seeing if modifiers are inactive, suggested by wismill

This commit is contained in:
sithlord48
2025-08-25 14:33:20 -04:00
committed by Nick Bolton
parent fb144a5e66
commit b18c3b588f

View File

@ -128,7 +128,7 @@ std::uint32_t EiKeyState::convertModMask(xkb_mod_mask_t xkbModMaskIn) const
#endif
// Skip inactive modifiers.
if ((xkbModMaskIn & xkbModMask) == 0)
if ((xkbModMaskIn & xkbModMask) != xkbModMask)
continue;
/* added in libxkbcommon 1.8.0 in the same commit so we have all or none */