core: ignore internal move workspace calls if the workspace doesn't change (#9516)
This commit is contained in:
parent
11943f761e
commit
2acbb59bf2
1 changed files with 3 additions and 0 deletions
|
|
@ -2700,6 +2700,9 @@ void CCompositor::moveWindowToWorkspaceSafe(PHLWINDOW pWindow, PHLWORKSPACE pWor
|
||||||
if (pWindow->m_bPinned && pWorkspace->m_bIsSpecialWorkspace)
|
if (pWindow->m_bPinned && pWorkspace->m_bIsSpecialWorkspace)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (pWindow->m_pWorkspace == pWorkspace)
|
||||||
|
return;
|
||||||
|
|
||||||
const bool FULLSCREEN = pWindow->isFullscreen();
|
const bool FULLSCREEN = pWindow->isFullscreen();
|
||||||
const auto FULLSCREENMODE = pWindow->m_sFullscreenState.internal;
|
const auto FULLSCREENMODE = pWindow->m_sFullscreenState.internal;
|
||||||
const bool WASVISIBLE = pWindow->m_pWorkspace && pWindow->m_pWorkspace->isVisible();
|
const bool WASVISIBLE = pWindow->m_pWorkspace && pWindow->m_pWorkspace->isVisible();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue