diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-19 21:32:30 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-19 21:32:30 +0100 |
| commit | da8be82c9a4dec19ecaad17188d6e581677ac1c4 (patch) | |
| tree | 3012f291388adc9e926c567480e9d2c47152bba8 /src/layout/IHyprLayout.cpp | |
| parent | 8ffd244ef6cca76af51e283355ae048557510349 (diff) | |
Fix self-noding in changeWindowFloatingMode
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index d2c2c9ad..565e8b0d 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -301,6 +301,9 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { pWindow->m_vLastFloatingSize = PSAVEDSIZE; + // move to narnia because we don't wanna find our own node. onWindowCreatedTiling should apply the coords back. + pWindow->m_vPosition = Vector2D(-999999, -999999); + onWindowCreatedTiling(pWindow); pWindow->m_vRealPosition.setValue(PSAVEDPOS); |
