surface: fixup logical damage size calculations

fixes #6618
This commit is contained in:
Vaxry
2024-07-22 12:37:54 +02:00
parent 672bf1f867
commit 5979ceb56b
3 changed files with 41 additions and 23 deletions

View File

@@ -1693,7 +1693,7 @@ void CHyprRenderer::damageSurface(SP<CWLSurfaceResource> pSurface, double x, dou
return;
const auto WLSURF = CWLSurface::fromResource(pSurface);
CRegion damageBox = WLSURF ? WLSURF->logicalDamage() : CRegion{};
CRegion damageBox = WLSURF ? WLSURF->computeDamage() : CRegion{};
if (!WLSURF) {
Debug::log(ERR, "BUG THIS: No CWLSurface for surface in damageSurface!!!");
return;