mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
WorkspacesDisplay: update the primary monitor index too
The primary monitor index might change so we need to update it too. https://bugzilla.gnome.org/show_bug.cgi?id=743993
This commit is contained in:
parent
12b00501cc
commit
fb6598ac10
1 changed files with 1 additions and 0 deletions
|
|
@ -536,6 +536,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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue