Reloads dynamic window rules (#2585)

* Reloads dynamic window rules

* Update ConfigManager.cpp

* Update ConfigManager.cpp
This commit is contained in:
MightyPlaza 2023-06-26 11:03:51 +00:00 committed by GitHub
parent 4294456cdc
commit 7ed66abe57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1564,6 +1564,14 @@ void CConfigManager::loadConfigLoadVars() {
// Update window border colors
g_pCompositor->updateAllWindowsAnimatedDecorationValues();
// Updates dynamic window rules
for (auto& w : g_pCompositor->m_vWindows) {
if (!w->m_bIsMapped)
continue;
w->updateDynamicRules();
}
// update layout
g_pLayoutManager->switchToLayout(configValues["general:layout"].strValue);