summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorthejch <66577496+thejch@users.noreply.github.com>2023-11-20 14:34:28 -0800
committerGitHub <noreply@github.com>2023-11-20 22:34:28 +0000
commit7d1c8d827a1f17200fe868983b203c15cc91d0df (patch)
treeaecd19f196d2b7f6c3cfc79033201b6ae1af561c /src/render
parent6d26199e1ccd2f99084ec5a9107b8e7cdd286249 (diff)
shadow: add workspace offset to floating window shadow (#3906)
Diffstat (limited to 'src/render')
-rw-r--r--src/render/decorations/CHyprDropShadowDecoration.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp
index d8972376..bbf6def4 100644
--- a/src/render/decorations/CHyprDropShadowDecoration.cpp
+++ b/src/render/decorations/CHyprDropShadowDecoration.cpp
@@ -92,6 +92,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a, const Vector2D
// scale the box in relation to the center of the box
fullBox.scaleFromCenter(SHADOWSCALE).translate(*PSHADOWOFFSET);
+ m_vLastWindowPos += WORKSPACEOFFSET;
m_seExtents = {{m_vLastWindowPos.x - fullBox.x - pMonitor->vecPosition.x + 2, m_vLastWindowPos.y - fullBox.y - pMonitor->vecPosition.y + 2},
{fullBox.x + fullBox.width + pMonitor->vecPosition.x - m_vLastWindowPos.x - m_vLastWindowSize.x + 2,
fullBox.y + fullBox.height + pMonitor->vecPosition.y - m_vLastWindowPos.y - m_vLastWindowSize.y + 2}};