This commit is contained in:
vaxerski 2021-12-24 16:36:59 +01:00
parent ce024f7c36
commit e0034f7386

View file

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