From cbe9bf0e692010717e3d35e87a9abee79c5f8e4f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 21 Jun 2023 20:51:18 +0200 Subject: [PATCH] compositor: move group members properly in moveWindowToWorkspaceSafe --- src/Compositor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index f33f69001..76fefca11 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2387,6 +2387,15 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks pWindow->m_vRealPosition = POSTOMON + PWORKSPACEMONITOR->vecPosition; } + if (pWindow->m_sGroupData.pNextWindow) { + CWindow* next = pWindow->m_sGroupData.pNextWindow; + while (next != pWindow) { + next->moveToWorkspace(pWorkspace->m_iID); + next->updateToplevel(); + next = next->m_sGroupData.pNextWindow; + } + } + if (FULLSCREEN) setWindowFullscreen(pWindow, true, FULLSCREENMODE); }