mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:09:49 +01:00
internal: moveToWorkspace before setting ws
This commit is contained in:
parent
4a92deec54
commit
c0f4e9f52e
1 changed files with 3 additions and 3 deletions
|
@ -2327,6 +2327,9 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks
|
||||||
if (FULLSCREEN)
|
if (FULLSCREEN)
|
||||||
setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
||||||
|
|
||||||
|
pWindow->moveToWorkspace(pWorkspace->m_iID);
|
||||||
|
pWindow->updateToplevel();
|
||||||
|
|
||||||
if (!pWindow->m_bIsFloating) {
|
if (!pWindow->m_bIsFloating) {
|
||||||
g_pLayoutManager->getCurrentLayout()->onWindowRemovedTiling(pWindow);
|
g_pLayoutManager->getCurrentLayout()->onWindowRemovedTiling(pWindow);
|
||||||
pWindow->m_iWorkspaceID = pWorkspace->m_iID;
|
pWindow->m_iWorkspaceID = pWorkspace->m_iID;
|
||||||
|
@ -2344,9 +2347,6 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks
|
||||||
pWindow->m_vRealPosition = POSTOMON + PWORKSPACEMONITOR->vecPosition;
|
pWindow->m_vRealPosition = POSTOMON + PWORKSPACEMONITOR->vecPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
pWindow->moveToWorkspace(pWorkspace->m_iID);
|
|
||||||
pWindow->updateToplevel();
|
|
||||||
|
|
||||||
if (FULLSCREEN)
|
if (FULLSCREEN)
|
||||||
setWindowFullscreen(pWindow, true, FULLSCREEN_FULL);
|
setWindowFullscreen(pWindow, true, FULLSCREEN_FULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue