Fix background occlusion ignoring monitor position (#2771)

This commit is contained in:
outfoxxed 2023-07-22 01:19:51 -07:00 committed by GitHub
parent 27dd07f1b8
commit 375e8385ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2010,7 +2010,7 @@ void CHyprRenderer::setOccludedForBackLayers(CRegion& region, CWorkspace* pWorks
continue;
const auto ROUNDING = w->rounding() * PMONITOR->scale;
const Vector2D POS = w->m_vRealPosition.vec() + Vector2D{ROUNDING, ROUNDING} + pWorkspace->m_vRenderOffset.vec();
const Vector2D POS = w->m_vRealPosition.vec() + Vector2D{ROUNDING, ROUNDING} - PMONITOR->vecPosition + pWorkspace->m_vRenderOffset.vec();
const Vector2D SIZE = w->m_vRealSize.vec() - Vector2D{ROUNDING * 2, ROUNDING * 2};
wlr_box box = {POS.x, POS.y, SIZE.x, SIZE.y};