diff options
author | vaxerski <[email protected]> | 2022-11-16 15:34:46 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-11-16 15:35:36 +0000 |
commit | c02bfc3897137439596df4670cef2441d24c8367 (patch) | |
tree | fea06e60c8080c8645f00e55961d44a3f91b2dd8 | |
parent | 878a20741bc38a5b4fff3d3947a39049c6a72be0 (diff) | |
download | Hyprland-c02bfc3897137439596df4670cef2441d24c8367.tar.gz Hyprland-c02bfc3897137439596df4670cef2441d24c8367.zip |
fix extents in shadow decov0.18.0beta
-rw-r--r-- | src/render/decorations/CHyprDropShadowDecoration.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index e9bcf6d1..131c7431 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -104,13 +104,13 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a, const Vector2D fullBox.y += ((m_vLastWindowSize.y + 2.0 * *PSHADOWSIZE) - NEWSIZE.y) / 2.0; } - fullBox.x += offset.x; - fullBox.y += offset.y; - 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_pWindow->m_vRealPosition.vec().x - m_pWindow->m_vRealSize.vec().x + 2, - fullBox.y + fullBox.height + pMonitor->vecPosition.y - m_pWindow->m_vRealPosition.vec().y - m_pWindow->m_vRealSize.vec().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} }; + + fullBox.x += offset.x; + fullBox.y += offset.y; if (fullBox.width < 1 || fullBox.height < 1) return; // don't draw invisible shadows |