summaryrefslogtreecommitdiff
path: root/src/layout/DwindleLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-05 19:28:10 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-05 19:28:10 +0200
commitf8e0b0b448b8b68f65ee1c3eebdd4eb3e3382138 (patch)
treeffc828e5fd67f8a429517c1fe01a4780c2ea694c /src/layout/DwindleLayout.cpp
parentf5562941f70a448a2e292449296ff4c6ba26dc37 (diff)
fadein and prep for fadeout
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r--src/layout/DwindleLayout.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 4e12fc49..23b76073 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -259,6 +259,10 @@ void CHyprDwindleLayout::onWindowRemoved(CWindow* pWindow) {
m_lDwindleNodesData.remove(*PPARENT);
m_lDwindleNodesData.remove(*PNODE);
+
+ // jump back like it jumps in
+ pWindow->m_vEffectivePosition = pWindow->m_vEffectivePosition + ((pWindow->m_vEffectiveSize - Vector2D(5, 5)) * 0.5f);
+ pWindow->m_vEffectiveSize = Vector2D(5, 5);
}
void CHyprDwindleLayout::recalculateMonitor(const int& monid) {