mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-21 10:48:24 +00: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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user