mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-17 23:41:44 +00:00
renderer: cleanup back buffer skip checks
This commit is contained in:
@@ -2028,12 +2028,17 @@ bool CHyprRenderer::canSkipBackBufferClear(CMonitor* pMonitor) {
|
|||||||
if (!ls->layerSurface)
|
if (!ls->layerSurface)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!ls->layerSurface->surface->opaque || !(ls->alpha.fl() >= 1.f))
|
if (ls->alpha.fl() < 1.f)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (ls->geometry.x == pMonitor->vecPosition.x && ls->geometry.y == pMonitor->vecPosition.y && ls->geometry.width == pMonitor->vecSize.x &&
|
if (ls->geometry.x != pMonitor->vecPosition.x || ls->geometry.y != pMonitor->vecPosition.y || ls->geometry.width != pMonitor->vecSize.x ||
|
||||||
ls->geometry.height == pMonitor->vecSize.y)
|
ls->geometry.height != pMonitor->vecSize.y)
|
||||||
return true;
|
continue;
|
||||||
|
|
||||||
|
if (!ls->layerSurface->surface->opaque)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user