From 5fdd1dd60ffba84174954abe7fc5e8e921a35b46 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 6 Sep 2022 17:26:18 +0200 Subject: [PATCH] simplify config monitor reloads and rearrange layers --- src/config/ConfigManager.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 3ed4e0fb..624cc63b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1160,12 +1160,15 @@ void CConfigManager::loadConfigLoadVars() { g_pLayoutManager->switchToLayout(configValues["general:layout"].strValue); // mark blur dirty - for (auto& m : g_pCompositor->m_vMonitors) + for (auto& m : g_pCompositor->m_vMonitors) { g_pHyprOpenGL->markBlurDirtyForMonitor(m.get()); - // Force the compositor to fully re-render all monitors - for (auto& m : g_pCompositor->m_vMonitors) - m->forceFullFrames = 2; + m->forceFullFrames = 2; // Force the compositor to fully re-render all monitors + + // rearrange layers + g_pHyprRenderer->arran + } + // Reset no monitor reload m_bNoMonitorReload = false;