fix addreserved lag

This commit is contained in:
vaxerski 2022-09-08 14:11:32 +02:00
parent 64be57b780
commit 49a55f136e
2 changed files with 4 additions and 3 deletions

View file

@ -1178,9 +1178,6 @@ void CConfigManager::loadConfigLoadVars() {
// Force the compositor to fully re-render all monitors
m->forceFullFrames = 2;
// rearrange layers
g_pHyprRenderer->arrangeLayersForMonitor(m->ID);
}
// Reset no monitor reload
@ -1440,6 +1437,8 @@ void CConfigManager::performMonitorReload() {
overAgain = true;
break;
}
g_pHyprRenderer->arrangeLayersForMonitor(m->ID);
}
if (overAgain)

View file

@ -703,6 +703,8 @@ void CHyprRenderer::arrangeLayersForMonitor(const int& monitor) {
if (PMONITOR->damage)
damageMonitor(PMONITOR);
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(monitor);
Debug::log(LOG, "Monitor %s layers arranged: reserved: %f %f %f %f", PMONITOR->szName.c_str(), PMONITOR->vecReservedTopLeft.x, PMONITOR->vecReservedTopLeft.y, PMONITOR->vecReservedBottomRight.x, PMONITOR->vecReservedBottomRight.y);
}