mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 05:29:50 +01:00
keybinds: make the keybind manager check for session lock (#5894)
This commit is contained in:
parent
c7fbc30bfd
commit
cddeec47a1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue