mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 17:05:59 +01:00
renderer: cleanup back buffer skip checks
This commit is contained in:
parent
833d73df09
commit
d2a8b8c2de
1 changed files with 9 additions and 4 deletions
|
@ -2028,11 +2028,16 @@ bool CHyprRenderer::canSkipBackBufferClear(CMonitor* pMonitor) {
|
|||
if (!ls->layerSurface)
|
||||
continue;
|
||||
|
||||
if (!ls->layerSurface->surface->opaque || !(ls->alpha.fl() >= 1.f))
|
||||
if (ls->alpha.fl() < 1.f)
|
||||
continue;
|
||||
|
||||
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)
|
||||
continue;
|
||||
|
||||
if (!ls->layerSurface->surface->opaque)
|
||||
continue;
|
||||
|
||||
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)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue