mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
added a lockgroups dispatcher
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user