Skip to content

Commit

Permalink
fix: correctly populate workspace layouts for the number of active mo…
Browse files Browse the repository at this point in the history
…nitors (fixes #77) (#89)
  • Loading branch information
meronz authored Jun 1, 2024
1 parent 64e375c commit 57206a9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/extension/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,15 @@ export default class App extends Extension {
changed = true;
}

// A monitor could have been added, cycle each workspace and push a new monitor if needed
for (let i = 0; i < this.layouts.workspaces.length; i++) {
let workspace = this.layouts.workspaces[i];
while (workspace.length < nMonitors) {
workspace.push({ current: 0 });
changed = true;
}
}

return changed;
}

Expand Down

0 comments on commit 57206a9

Please sign in to comment.