diff options
author | Ikalco <[email protected]> | 2024-05-05 13:28:14 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-05 19:28:14 +0100 |
commit | cddeec47a1fc0e70d8598fd10c29cd0e9489999f (patch) | |
tree | ec85d779561dfd212b6ab9e24a4fd41c154b253f | |
parent | c7fbc30bfd64b2104006fef291f4c4bff537beb2 (diff) | |
download | Hyprland-cddeec47a1fc0e70d8598fd10c29cd0e9489999f.tar.gz Hyprland-cddeec47a1fc0e70d8598fd10c29cd0e9489999f.zip |
keybinds: make the keybind manager check for session lock (#5894)
-rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 16b631c8..6eadfd99 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -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; |