PreviewedWindowNavigator: Don't wrap around when preview not visible

This commit is contained in:
Ole Jørgen Brønner
2017-09-17 11:35:31 +02:00
parent adbba75d52
commit 2478db8c75
+2 -2
View File
@@ -563,11 +563,11 @@ PreviewedWindowNavigator = new Lang.Class({
_initialSelection: function(backward, binding) {
if (backward)
this._select(this._previous());
this._select(Math.min(this._selectedIndex, this._previous()));
else if (this._items.length == 1)
this._select(0);
else
this._select(this._next());
this._select(Math.max(this._selectedIndex, this._next()));
},
_getWindowList: function() {