Reloads animated decoration values set on window rules (#2594)

* Reloads dynamic window rules

* Update ConfigManager.cpp

* Update ConfigManager.cpp

* Reloads animated decoration values set on window rules

Reloads animated decoration values like border color and opacity set on window rule on config reload.
This commit is contained in:
MightyPlaza 2023-06-28 09:40:16 +00:00 committed by GitHub
parent d83296c7a9
commit 990ad854bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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