diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-22 21:13:02 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-22 21:13:06 +0100 |
| commit | c0f4e9f52e1839a69ae3fa9994754f8c27a0db9d (patch) | |
| tree | 936cbc07e47120718ea6e9308086eeabf7cf9d5d /src/Compositor.cpp | |
| parent | 4a92deec544dc26e809112bd0578d7269fad4095 (diff) | |
internal: moveToWorkspace before setting ws
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 6e0f7baa..33042d2b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2327,6 +2327,9 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks if (FULLSCREEN) setWindowFullscreen(pWindow, false, FULLSCREEN_FULL); + pWindow->moveToWorkspace(pWorkspace->m_iID); + pWindow->updateToplevel(); + if (!pWindow->m_bIsFloating) { g_pLayoutManager->getCurrentLayout()->onWindowRemovedTiling(pWindow); pWindow->m_iWorkspaceID = pWorkspace->m_iID; @@ -2344,9 +2347,6 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks pWindow->m_vRealPosition = POSTOMON + PWORKSPACEMONITOR->vecPosition; } - pWindow->moveToWorkspace(pWorkspace->m_iID); - pWindow->updateToplevel(); - if (FULLSCREEN) setWindowFullscreen(pWindow, true, FULLSCREEN_FULL); } |
