core: ignore internal move workspace calls if the workspace doesn't change (#9516)

This commit is contained in:
phonetic112
2025-03-01 13:34:38 -05:00
committed by GitHub
parent 11943f761e
commit 2acbb59bf2

View File

@@ -2700,6 +2700,9 @@ void CCompositor::moveWindowToWorkspaceSafe(PHLWINDOW pWindow, PHLWORKSPACE pWor
if (pWindow->m_bPinned && pWorkspace->m_bIsSpecialWorkspace)
return;
if (pWindow->m_pWorkspace == pWorkspace)
return;
const bool FULLSCREEN = pWindow->isFullscreen();
const auto FULLSCREENMODE = pWindow->m_sFullscreenState.internal;
const bool WASVISIBLE = pWindow->m_pWorkspace && pWindow->m_pWorkspace->isVisible();