mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-27 03:49: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 =
|
const bool IGNORECONDITIONS =
|
||||||
SPECIALDISPATCHER && !pressed && SPECIALTRIGGERED; // ignore mods. Pass, global dispatchers should be released immediately once the key is released.
|
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 &&
|
if (!IGNORECONDITIONS &&
|
||||||
((modmask != k.modmask && !k.ignoreMods) || (g_pCompositor->m_sSeat.exclusiveClient && !k.locked) || k.submap != m_szCurrentSelectedSubmap || k.shadowed))
|
((modmask != k.modmask && !k.ignoreMods) || (g_pCompositor->m_sSeat.exclusiveClient && !k.locked) || k.submap != m_szCurrentSelectedSubmap || k.shadowed))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue