Skip to content

Commit

Permalink
[Scale] Initially set primary monitor as the active monitor.
Browse files Browse the repository at this point in the history
  • Loading branch information
autarkper committed Nov 19, 2012
1 parent 66cb7ff commit 01eb713
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/ui/workspace.js
Expand Up @@ -1620,9 +1620,9 @@ Workspace.prototype = {
this.actor = new Clutter.Group();
this.actor.set_size(0, 0);
this._monitors = [];
let focusIndex = Main.layoutManager.focusIndex;
Main.layoutManager.monitors.forEach(function(monitor, monitorIndex) {
let m = new WorkspaceMonitor(metaWorkspace, monitorIndex, this, monitorIndex === focusIndex)
this.currentMonitorIndex = Main.layoutManager.primaryIndex;
Main.layoutManager.monitors.forEach(function(monitor, ix) {
let m = new WorkspaceMonitor(metaWorkspace, ix, this, ix === this.currentMonitorIndex)
this._monitors.push(m);
this.actor.add_actor(m.actor);
}, this);
Expand All @@ -1648,7 +1648,7 @@ Workspace.prototype = {
this._monitors[this.currentMonitorIndex].showActiveSelection(true);
return;
}
let previousIndex = this.currentMonitorIndex || 0;
let previousIndex = this.currentMonitorIndex;
this.currentMonitorIndex = this.findNextNonEmptyMonitor(start || 0, increment);
this._monitors[previousIndex].showActiveSelection(false);
this._monitors[this.currentMonitorIndex].showActiveSelection(true);
Expand Down

0 comments on commit 01eb713

Please sign in to comment.