aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-02 20:50:37 +0000
committervaxerski <[email protected]>2023-03-02 20:50:37 +0000
commit489ef7c51c7d33eeba6d6a66b6697f52441ddf45 (patch)
treeb42f80f5f8e38dc9d5340e1c06366220f24033ca /src
parent34685a836a40648167848060b48b62788cdcc85f (diff)
downloadHyprland-489ef7c51c7d33eeba6d6a66b6697f52441ddf45.tar.gz
Hyprland-489ef7c51c7d33eeba6d6a66b6697f52441ddf45.zip
add toggle group lock
Diffstat (limited to 'src')
-rw-r--r--src/managers/KeybindManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index f97347f6..0dadcddd 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -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;
}