mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:49:49 +01:00
add toggle group lock
This commit is contained in:
parent
34685a836a
commit
489ef7c51c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue