layout: Don't unnecessarily go through Main for a property

We *are* Main.layoutManager, here.

https://bugzilla.gnome.org/show_bug.cgi?id=682429
This commit is contained in:
Jasper St. Pierre 2012-08-22 04:15:53 -03:00
parent 3fafe0da07
commit 2154a22c90

View File

@ -314,7 +314,7 @@ const LayoutManager = new Lang.Class({
get currentMonitor() {
let index = global.screen.get_current_monitor();
return Main.layoutManager.monitors[index];
return this.monitors[index];
},
_startupAnimation: function() {