mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 04:42:25 +01:00
renderer: scale box for occlusion
This commit is contained in:
parent
ff598b0827
commit
23eda1411b
1 changed files with 5 additions and 1 deletions
|
@ -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 POS = w->m_vRealPosition.vec() + Vector2D{ROUNDING, ROUNDING} + pWorkspace->m_vRenderOffset.vec();
|
||||||
const Vector2D SIZE = w->m_vRealSize.vec() - Vector2D{ROUNDING * 2, ROUNDING * 2};
|
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);
|
region.subtract(rg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue