workspaces: minor fixes for multi-special

This commit is contained in:
vaxerski 2023-05-06 16:10:51 +01:00
parent 7f0738bcb3
commit 83cd5e2ebd
2 changed files with 6 additions and 1 deletions

View file

@ -1064,7 +1064,7 @@ bool CCompositor::isWorkspaceVisible(const int& w) {
if (m->activeWorkspace == w) if (m->activeWorkspace == w)
return true; return true;
if (m->specialWorkspaceID && isWorkspaceSpecial(w)) if (m->specialWorkspaceID == w)
return true; return true;
} }

View file

@ -579,6 +579,11 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
return; return;
} }
if (specialWorkspaceID) {
if (const auto EXISTINGSPECIAL = g_pCompositor->getWorkspaceByID(specialWorkspaceID); EXISTINGSPECIAL)
EXISTINGSPECIAL->startAnim(false, false);
}
// open special // open special
pWorkspace->m_iMonitorID = ID; pWorkspace->m_iMonitorID = ID;
specialWorkspaceID = pWorkspace->m_iID; specialWorkspaceID = pWorkspace->m_iID;