From 7ed66abe57c493379721997224332379f6e18a9a Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:03:51 +0000 Subject: [PATCH] Reloads dynamic window rules (#2585) * Reloads dynamic window rules * Update ConfigManager.cpp * Update ConfigManager.cpp --- src/config/ConfigManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 86c4a4c8..f0c04c60 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -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);