shadow: avoid fatal mutation of the windowBox for calcs

fixes #3865
This commit is contained in:
Vaxry
2023-11-16 17:31:52 +00:00
parent 859841f4d1
commit 4868d4dfd3
3 changed files with 7 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a, const Vector2D
CRegion saveDamage = g_pHyprOpenGL->m_RenderData.damage;
g_pHyprOpenGL->m_RenderData.damage = fullBox;
g_pHyprOpenGL->m_RenderData.damage.subtract(windowBox.expand(-ROUNDING * pMonitor->scale)).intersect(saveDamage);
g_pHyprOpenGL->m_RenderData.damage.subtract(windowBox.copy().expand(-ROUNDING * pMonitor->scale)).intersect(saveDamage);
alphaFB.bind();