mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 17:25:58 +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)
|
||||
return true;
|
||||
|
||||
if (m->specialWorkspaceID && isWorkspaceSpecial(w))
|
||||
if (m->specialWorkspaceID == w)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -579,6 +579,11 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (specialWorkspaceID) {
|
||||
if (const auto EXISTINGSPECIAL = g_pCompositor->getWorkspaceByID(specialWorkspaceID); EXISTINGSPECIAL)
|
||||
EXISTINGSPECIAL->startAnim(false, false);
|
||||
}
|
||||
|
||||
// open special
|
||||
pWorkspace->m_iMonitorID = ID;
|
||||
specialWorkspaceID = pWorkspace->m_iID;
|
||||
|
|
Loading…
Reference in a new issue