diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index ba3a1204f..e7a3a8c2d 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -538,6 +538,7 @@ const WorkspacesDisplay = new Lang.Class({ for (let i = 0; i < this._workspacesViews.length; i++) this._workspacesViews[i].destroy(); + this._primaryIndex = Main.layoutManager.primaryIndex; this._workspacesViews = []; let monitors = Main.layoutManager.monitors; for (let i = 0; i < monitors.length; i++) {