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:
parent
706a2259b8
commit
81db908339
@ -558,6 +558,8 @@ var LayoutManager = new Lang.Class({
|
||||
},
|
||||
|
||||
get focusMonitor() {
|
||||
if (this.focusIndex < 0)
|
||||
return null;
|
||||
return this.monitors[this.focusIndex];
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user