Skip to content

Commit

Permalink
keybinds: make the keybind manager check for session lock (#5894)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalco authored May 5, 2024
1 parent c7fbc30 commit cddeec4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cddeec4

Please sign in to comment.