diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-27 20:06:44 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-27 20:06:44 +0200 |
| commit | 39303fd2b0c82358bd1a1e12a36c2b0ddd1a574e (patch) | |
| tree | bbce75b77ee481ae0be384eb02776353018f67c2 /src/layout/DwindleLayout.cpp | |
| parent | ba7b2d0db2bfa5a054a69af0b1ca9e9e7165a5ef (diff) | |
animate float->tile properly
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index dfa93c93..507bd3cf 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -267,7 +267,14 @@ void CHyprDwindleLayout::changeWindowFloatingMode(CWindow* pWindow) { const auto PNODE = getNodeFromWindow(pWindow); if (!PNODE) { + // save real pos cuz the func applies the default 5,5 mid + const auto PSAVEDPOS = pWindow->m_vRealPosition; + const auto PSAVEDSIZE = pWindow->m_vRealSize; + onWindowCreated(pWindow); + + pWindow->m_vRealPosition = PSAVEDPOS; + pWindow->m_vRealSize = PSAVEDSIZE; } else { onWindowRemoved(pWindow); } |
