mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 22:26:00 +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) {
|
void CKeybindManager::lockGroups(std::string args) {
|
||||||
if (args == "lock" || args.empty() || args == "lockgroups") {
|
if (args == "lock" || args.empty() || args == "lockgroups") {
|
||||||
g_pKeybindManager->m_bGroupsLocked = true;
|
g_pKeybindManager->m_bGroupsLocked = true;
|
||||||
|
} else if (args == "toggle") {
|
||||||
|
g_pKeybindManager->m_bGroupsLocked = !g_pKeybindManager->m_bGroupsLocked;
|
||||||
} else {
|
} else {
|
||||||
g_pKeybindManager->m_bGroupsLocked = false;
|
g_pKeybindManager->m_bGroupsLocked = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue