layoutManager: Return null monitor if focusIndex is invalid
https://bugzilla.gnome.org/show_bug.cgi?id=788882
This commit is contained in:
parent
878946962d
commit
996dd74157
@ -557,6 +557,8 @@ var LayoutManager = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
get focusMonitor() {
|
get focusMonitor() {
|
||||||
|
if (this.focusIndex < 0)
|
||||||
|
return null;
|
||||||
return this.monitors[this.focusIndex];
|
return this.monitors[this.focusIndex];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user