renderer: avoid rendering frame if finalDamage is empty

This commit is contained in:
Vaxry 2024-04-23 12:29:01 +01:00
parent 4f1214c7e9
commit cf3596a96d

View file

@ -1286,6 +1286,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
bool renderCursor = true;
if (!finalDamage.empty()) {
if (!pMonitor->solitaryClient) {
if (pMonitor->isMirror()) {
g_pHyprOpenGL->blend(false);
@ -1324,6 +1325,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
} else {
g_pHyprRenderer->renderWindow(pMonitor->solitaryClient, pMonitor, &now, false, RENDER_PASS_MAIN /* solitary = no popups */);
}
}
renderCursor = renderCursor && shouldRenderCursor();