mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 07:26:01 +01:00
fix addreserved lag
This commit is contained in:
parent
64be57b780
commit
49a55f136e
2 changed files with 4 additions and 3 deletions
|
@ -1178,9 +1178,6 @@ void CConfigManager::loadConfigLoadVars() {
|
||||||
|
|
||||||
// Force the compositor to fully re-render all monitors
|
// Force the compositor to fully re-render all monitors
|
||||||
m->forceFullFrames = 2;
|
m->forceFullFrames = 2;
|
||||||
|
|
||||||
// rearrange layers
|
|
||||||
g_pHyprRenderer->arrangeLayersForMonitor(m->ID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset no monitor reload
|
// Reset no monitor reload
|
||||||
|
@ -1440,6 +1437,8 @@ void CConfigManager::performMonitorReload() {
|
||||||
overAgain = true;
|
overAgain = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_pHyprRenderer->arrangeLayersForMonitor(m->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overAgain)
|
if (overAgain)
|
||||||
|
|
|
@ -703,6 +703,8 @@ void CHyprRenderer::arrangeLayersForMonitor(const int& monitor) {
|
||||||
if (PMONITOR->damage)
|
if (PMONITOR->damage)
|
||||||
damageMonitor(PMONITOR);
|
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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue