summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorMightyPlaza <123664421+MightyPlaza@users.noreply.github.com>2023-07-03 13:53:04 +0000
committerGitHub <noreply@github.com>2023-07-03 15:53:04 +0200
commit50755d26d4662f7392895f35a67502bc8c842a2d (patch)
tree0899cb9400847944eacc9c537f185ff7ae8ea25a /src/managers/KeybindManager.cpp
parent05047f60f4a6303a26f5ecef712f249b770f27b9 (diff)
lockgroups fix (#2636)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 097b881c..a89f1d5e 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -1207,12 +1207,13 @@ void CKeybindManager::toggleGroup(std::string args) {
w->m_sGroupData.head = false;
}
+ bool prevState = g_pKeybindManager->m_bGroupsLocked;
g_pKeybindManager->m_bGroupsLocked = true;
for (auto& w : members) {
g_pLayoutManager->getCurrentLayout()->onWindowCreated(w);
w->updateWindowDecos();
}
- g_pKeybindManager->m_bGroupsLocked = false;
+ g_pKeybindManager->m_bGroupsLocked = prevState;
}
}