mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:25:57 +01:00
renderer: avoid rendering frame if finalDamage is empty
This commit is contained in:
parent
4f1214c7e9
commit
cf3596a96d
1 changed files with 37 additions and 35 deletions
|
@ -1286,6 +1286,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||||
|
|
||||||
bool renderCursor = true;
|
bool renderCursor = true;
|
||||||
|
|
||||||
|
if (!finalDamage.empty()) {
|
||||||
if (!pMonitor->solitaryClient) {
|
if (!pMonitor->solitaryClient) {
|
||||||
if (pMonitor->isMirror()) {
|
if (pMonitor->isMirror()) {
|
||||||
g_pHyprOpenGL->blend(false);
|
g_pHyprOpenGL->blend(false);
|
||||||
|
@ -1324,6 +1325,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||||
} else {
|
} else {
|
||||||
g_pHyprRenderer->renderWindow(pMonitor->solitaryClient, pMonitor, &now, false, RENDER_PASS_MAIN /* solitary = no popups */);
|
g_pHyprRenderer->renderWindow(pMonitor->solitaryClient, pMonitor, &now, false, RENDER_PASS_MAIN /* solitary = no popups */);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
renderCursor = renderCursor && shouldRenderCursor();
|
renderCursor = renderCursor && shouldRenderCursor();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue