mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:45:58 +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;
|
||||
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue