diff options
author | vaxerski <[email protected]> | 2023-07-20 18:12:29 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-07-20 18:12:29 +0200 |
commit | 23eda1411b2dc990a159b64ad73ac182d12fb4f9 (patch) | |
tree | ba40d0259bde1ea8d0e6dcd78e27c3ea6492bed4 | |
parent | ff598b0827ca179c57ff2e97806cd65b69374699 (diff) | |
download | Hyprland-23eda1411b2dc990a159b64ad73ac182d12fb4f9.tar.gz Hyprland-23eda1411b2dc990a159b64ad73ac182d12fb4f9.zip |
renderer: scale box for occlusion
-rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index dcb6c123..6613db2a 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -2013,7 +2013,11 @@ void CHyprRenderer::setOccludedForBackLayers(CRegion& region, CWorkspace* pWorks const Vector2D POS = w->m_vRealPosition.vec() + Vector2D{ROUNDING, ROUNDING} + pWorkspace->m_vRenderOffset.vec(); const Vector2D SIZE = w->m_vRealSize.vec() - Vector2D{ROUNDING * 2, ROUNDING * 2}; - rg.add(POS.x, POS.y, SIZE.x, SIZE.y); + wlr_box box = {POS.x, POS.y, SIZE.x, SIZE.y}; + + scaleBox(&box, PMONITOR->scale); + + rg.add(&box); } region.subtract(rg); |