lockgroups fix (#2636)

This commit is contained in:
MightyPlaza 2023-07-03 13:53:04 +00:00 committed by GitHub
parent 05047f60f4
commit 50755d26d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1207,12 +1207,13 @@ void CKeybindManager::toggleGroup(std::string args) {
w->m_sGroupData.head = false; w->m_sGroupData.head = false;
} }
bool prevState = g_pKeybindManager->m_bGroupsLocked;
g_pKeybindManager->m_bGroupsLocked = true; g_pKeybindManager->m_bGroupsLocked = true;
for (auto& w : members) { for (auto& w : members) {
g_pLayoutManager->getCurrentLayout()->onWindowCreated(w); g_pLayoutManager->getCurrentLayout()->onWindowCreated(w);
w->updateWindowDecos(); w->updateWindowDecos();
} }
g_pKeybindManager->m_bGroupsLocked = false; g_pKeybindManager->m_bGroupsLocked = prevState;
} }
} }