From 50755d26d4662f7392895f35a67502bc8c842a2d Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Mon, 3 Jul 2023 13:53:04 +0000 Subject: [PATCH] lockgroups fix (#2636) --- src/managers/KeybindManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }