From da8be82c9a4dec19ecaad17188d6e581677ac1c4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 19 Oct 2022 21:32:30 +0100 Subject: [PATCH] Fix self-noding in changeWindowFloatingMode --- src/layout/IHyprLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);