compositor: disallow sending pinned to special

This commit is contained in:
vaxerski 2023-05-29 17:46:06 +02:00
parent f1ad270ff8
commit 5484411232

View file

@ -2352,6 +2352,9 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks
if (!pWindow || !pWorkspace) if (!pWindow || !pWorkspace)
return; return;
if (pWindow->m_bPinned && pWorkspace->m_bIsSpecialWorkspace)
return;
const bool FULLSCREEN = pWindow->m_bIsFullscreen; const bool FULLSCREEN = pWindow->m_bIsFullscreen;
const auto FULLSCREENMODE = getWorkspaceByID(pWindow->m_iWorkspaceID)->m_efFullscreenMode; const auto FULLSCREENMODE = getWorkspaceByID(pWindow->m_iWorkspaceID)->m_efFullscreenMode;