keybinds: make the keybind manager check for session lock (#5894)

This commit is contained in:
Ikalco 2024-05-05 13:28:14 -05:00 committed by GitHub
parent c7fbc30bfd
commit cddeec47a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -557,6 +557,9 @@ bool CKeybindManager::handleKeybinds(const uint32_t modmask, const SPressedKeyWi
const bool IGNORECONDITIONS =
SPECIALDISPATCHER && !pressed && SPECIALTRIGGERED; // ignore mods. Pass, global dispatchers should be released immediately once the key is released.
if (!k.locked && g_pSessionLockManager->isSessionLocked())
continue;
if (!IGNORECONDITIONS &&
((modmask != k.modmask && !k.ignoreMods) || (g_pCompositor->m_sSeat.exclusiveClient && !k.locked) || k.submap != m_szCurrentSelectedSubmap || k.shadowed))
continue;