mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 01:31:54 -07:00
add toggle group lock
This commit is contained in:
@@ -2059,6 +2059,8 @@ void CKeybindManager::fakeFullscreenActive(std::string args) {
|
||||
void CKeybindManager::lockGroups(std::string args) {
|
||||
if (args == "lock" || args.empty() || args == "lockgroups") {
|
||||
g_pKeybindManager->m_bGroupsLocked = true;
|
||||
} else if (args == "toggle") {
|
||||
g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked;
|
||||
} else {
|
||||
g_pKeybindManager->m_bGroupsLocked = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user