layoutManager: Return null monitor if focusIndex is invalid

https://bugzilla.gnome.org/show_bug.cgi?id=788882


(cherry picked from commit 996dd74157)
This commit is contained in:
Marco Trevisan (Treviño) 2018-06-28 14:51:48 +00:00 committed by Marco Trevisan
parent 706a2259b8
commit 81db908339

View File

@ -558,6 +558,8 @@ var LayoutManager = new Lang.Class({
},
get focusMonitor() {
if (this.focusIndex < 0)
return null;
return this.monitors[this.focusIndex];
},