[gnome-shell] layout: Don't unnecessarily go through Main for a property



commit 2154a22c90ba48cb67f3bda91d4d741dcec9bb59
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Aug 22 04:15:53 2012 -0300

    layout: Don't unnecessarily go through Main for a property
    
    We *are* Main.layoutManager, here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682429

 js/ui/layout.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 333b809..9f1cf61 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -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() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]