layoutManager: Return null monitor if focusIndex is invalid

https://bugzilla.gnome.org/show_bug.cgi?id=788882
This commit is contained in:
Marco Trevisan (Treviño) 2018-06-28 16:51:48 +02:00
parent 878946962d
commit 996dd74157

View File

@ -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];
}, },