diff options
author | outfoxxed <[email protected]> | 2023-07-22 01:19:51 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-22 10:19:51 +0200 |
commit | 375e8385eeabbcdae197e392394849e2cbb6f3ed (patch) | |
tree | 9a33a3faff2f0f2c92f708e17978f89be9a2c245 | |
parent | 27dd07f1b8f89dcf6fe29fec75fdd5c8e9bc9ec4 (diff) | |
download | Hyprland-375e8385eeabbcdae197e392394849e2cbb6f3ed.tar.gz Hyprland-375e8385eeabbcdae197e392394849e2cbb6f3ed.zip |
Fix background occlusion ignoring monitor position (#2771)
-rw-r--r-- | src/render/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 77b9fa84..2fdb919d 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -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}; |