simplify config monitor reloads and rearrange layers

This commit is contained in:
vaxerski 2022-09-06 17:26:18 +02:00
parent e71a4d75de
commit 5fdd1dd60f
1 changed files with 7 additions and 4 deletions

View File

@ -1160,12 +1160,15 @@ void CConfigManager::loadConfigLoadVars() {
g_pLayoutManager->switchToLayout(configValues["general:layout"].strValue); g_pLayoutManager->switchToLayout(configValues["general:layout"].strValue);
// mark blur dirty // mark blur dirty
for (auto& m : g_pCompositor->m_vMonitors) for (auto& m : g_pCompositor->m_vMonitors) {
g_pHyprOpenGL->markBlurDirtyForMonitor(m.get()); g_pHyprOpenGL->markBlurDirtyForMonitor(m.get());
// Force the compositor to fully re-render all monitors m->forceFullFrames = 2; // Force the compositor to fully re-render all monitors
for (auto& m : g_pCompositor->m_vMonitors)
m->forceFullFrames = 2; // rearrange layers
g_pHyprRenderer->arran
}
// Reset no monitor reload // Reset no monitor reload
m_bNoMonitorReload = false; m_bNoMonitorReload = false;