This commit is contained in:
vaxerski 2021-12-24 16:36:59 +01:00
parent ce024f7c36
commit e0034f7386
1 changed files with 4 additions and 0 deletions

View File

@ -1408,6 +1408,10 @@ void CWindowManager::changeWorkspaceByID(int ID) {
MONITOR = &monitors[0];
}
// Don't change if already opened
if (isWorkspaceVisible(ID))
return;
// mark old workspace dirty
setAllWorkspaceWindowsDirtyByID(activeWorkspaces[MONITOR->ID]);