diff options
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index b47f8d67..efeb2a07 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -60,6 +60,7 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["bringactivetotop"] = bringActiveToTop; m_mDispatchers["focusurgentorlast"] = focusUrgentOrLast; m_mDispatchers["focuscurrentorlast"] = focusCurrentOrLast; + m_mDispatchers["lockgroups"] = lockGroups; m_tScrollTimer.reset(); } @@ -2032,3 +2033,11 @@ void CKeybindManager::fakeFullscreenActive(std::string args) { g_pCompositor->m_pLastWindow->m_bFakeFullscreenState || g_pCompositor->m_pLastWindow->m_bIsFullscreen); } } + +void CKeybindManager::lockGroups(std::string args) { + if (args == "lock" || args.empty() || args == "lockgroups") { + g_pKeybindManager->m_bGroupsLocked = true; + } else { + g_pKeybindManager->m_bGroupsLocked = false; + } +} |
