added a lockgroups dispatcher
This commit is contained in:
parent
431c74f111
commit
a66ef50469
4 changed files with 16 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue