From 95769a3c54448e8e65b1bb0c3d4e7ff3bb9edaba Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Mar 2024 21:33:50 +0000 Subject: [PATCH] compositor: update state after moving to workspace fixes #4987 --- src/Compositor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 69643d10..ca722ada 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2651,9 +2651,6 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks setWindowFullscreen(pWindow, false, FULLSCREEN_FULL); pWindow->moveToWorkspace(pWorkspace->m_iID); - pWindow->updateToplevel(); - pWindow->updateDynamicRules(); - pWindow->uncacheWindowDecos(); if (!pWindow->m_bIsFloating) { g_pLayoutManager->getCurrentLayout()->onWindowRemovedTiling(pWindow); @@ -2672,6 +2669,10 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks pWindow->m_vRealPosition = POSTOMON + PWORKSPACEMONITOR->vecPosition; } + pWindow->updateToplevel(); + pWindow->updateDynamicRules(); + pWindow->uncacheWindowDecos(); + if (pWindow->m_sGroupData.pNextWindow) { CWindow* next = pWindow->m_sGroupData.pNextWindow; while (next != pWindow) {