summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-06-21 20:51:18 +0200
committervaxerski <vaxry@vaxry.net>2023-06-21 20:51:18 +0200
commitcbe9bf0e692010717e3d35e87a9abee79c5f8e4f (patch)
tree08175e0d64f074cbcb539382375f16e6e0119319 /src/Compositor.cpp
parent83ad6b9af8e0216f04692187986283121299cb94 (diff)
compositor: move group members properly in moveWindowToWorkspaceSafe
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index f33f6900..76fefca1 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);
}