mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 04:09:49 +01:00
workspaces: minor fixes for multi-special
This commit is contained in:
parent
7f0738bcb3
commit
83cd5e2ebd
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue