aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoroutfoxxed <[email protected]>2023-07-22 01:19:51 -0700
committerGitHub <[email protected]>2023-07-22 10:19:51 +0200
commit375e8385eeabbcdae197e392394849e2cbb6f3ed (patch)
tree9a33a3faff2f0f2c92f708e17978f89be9a2c245
parent27dd07f1b8f89dcf6fe29fec75fdd5c8e9bc9ec4 (diff)
downloadHyprland-375e8385eeabbcdae197e392394849e2cbb6f3ed.tar.gz
Hyprland-375e8385eeabbcdae197e392394849e2cbb6f3ed.zip
Fix background occlusion ignoring monitor position (#2771)
-rw-r--r--src/render/Renderer.cpp2
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};