From bf300a7632855d5aa545f0defdb89cc46010e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Mon, 9 Oct 2017 18:48:44 +0200 Subject: [PATCH] Use the correct start index depending on mru style or not --- minimap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/minimap.js b/minimap.js index ae2b6f1..239666f 100644 --- a/minimap.js +++ b/minimap.js @@ -230,6 +230,7 @@ MultiMap = new Lang.Class({ this.minimaps = []; if (mru) { + this.selectedIndex = 0; let seen = {}; let i = 0; global.display.get_tab_list(Meta.TabList.NORMAL_ALL, null) @@ -254,6 +255,7 @@ MultiMap = new Lang.Class({ } } } else { + this.selectedIndex = global.screen.get_active_workspace_index(); spaces.forEach((s, i) => { this.addSpace(s, i); }) @@ -262,7 +264,6 @@ MultiMap = new Lang.Class({ this.actor.height = this.rowHeight; this.actor.width = this.container.first_child.width; - this.selectedIndex = 0; let minimap = this.setSelected(this.selectedIndex, false); this.windows = minimap.space; let chrome = new St.Widget();