From 375e8385eeabbcdae197e392394849e2cbb6f3ed Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 22 Jul 2023 01:19:51 -0700 Subject: [PATCH] Fix background occlusion ignoring monitor position (#2771) --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};