diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 19:28:10 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 19:28:10 +0200 |
| commit | f8e0b0b448b8b68f65ee1c3eebdd4eb3e3382138 (patch) | |
| tree | ffc828e5fd67f8a429517c1fe01a4780c2ea694c /src/layout/DwindleLayout.cpp | |
| parent | f5562941f70a448a2e292449296ff4c6ba26dc37 (diff) | |
fadein and prep for fadeout
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 4 |
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) { |
