Skip to content

Commit

Permalink
Fix background occlusion ignoring monitor position (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
outfoxxed authored Jul 22, 2023
1 parent 27dd07f commit 375e838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 375e838

Please sign in to comment.