aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-11 14:28:12 +0000
committerVaxry <[email protected]>2023-11-11 14:28:12 +0000
commit3362c2822433a8badce745611f1bd129dda22896 (patch)
tree36d34958a54b0402530e4dcaf57b836a67eff58b
parentb8610ce80fa43d2a373e9328320d9534d0e9bb5e (diff)
downloadHyprland-3362c2822433a8badce745611f1bd129dda22896.tar.gz
Hyprland-3362c2822433a8badce745611f1bd129dda22896.zip
-rw-r--r--src/render/decorations/CHyprDropShadowDecoration.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp
index b4319494..ce2b4b80 100644
--- a/src/render/decorations/CHyprDropShadowDecoration.cpp
+++ b/src/render/decorations/CHyprDropShadowDecoration.cpp
@@ -19,7 +19,7 @@ SDecorationPositioningInfo CHyprDropShadowDecoration::getPositioningInfo() {
}
void CHyprDropShadowDecoration::onPositioningReply(const SDecorationPositioningReply& reply) {
- // ignored
+ updateWindow(m_pWindow);
}
void CHyprDropShadowDecoration::damageEntire() {
@@ -39,13 +39,11 @@ void CHyprDropShadowDecoration::updateWindow(CWindow* pWindow) {
const auto WORKSPACEOFFSET = PWORKSPACE && !pWindow->m_bPinned ? PWORKSPACE->m_vRenderOffset.vec() : Vector2D();
- if (pWindow->m_vRealPosition.vec() + WORKSPACEOFFSET != m_vLastWindowPos || pWindow->m_vRealSize.vec() != m_vLastWindowSize) {
- m_vLastWindowPos = pWindow->m_vRealPosition.vec() + WORKSPACEOFFSET;
- m_vLastWindowSize = pWindow->m_vRealSize.vec();
+ m_vLastWindowPos = pWindow->m_vRealPosition.vec() + WORKSPACEOFFSET;
+ m_vLastWindowSize = pWindow->m_vRealSize.vec();
- m_bLastWindowBox = {m_vLastWindowPos.x, m_vLastWindowPos.y, m_vLastWindowSize.x, m_vLastWindowSize.y};
- m_bLastWindowBoxWithDecos = g_pDecorationPositioner->getBoxWithIncludedDecos(pWindow);
- }
+ m_bLastWindowBox = {m_vLastWindowPos.x, m_vLastWindowPos.y, m_vLastWindowSize.x, m_vLastWindowSize.y};
+ m_bLastWindowBoxWithDecos = g_pDecorationPositioner->getBoxWithIncludedDecos(pWindow);
}
void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {