[gnome-shell] layout: Fix strut heuristics for multi-monitor



commit 5274166f8cd6bbd7b941eab99f99c2f604eaa749
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Dec 23 00:47:04 2012 -0500

    layout: Fix strut heuristics for multi-monitor
    
    Spotted while going through the code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690666

 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 ae828a0..9e2dee9 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -1092,7 +1092,7 @@ const Chrome = new Lang.Class({
             } else if (y1 <= primary.y && y2 >= primary.y + primary.height) {
                 if (x1 <= 0)
                     side = Meta.Side.LEFT;
-                else if (x2 >= global.screen_width)
+                else if (x2 >= primary.x + primary.width)
                     side = Meta.Side.RIGHT;
                 else
                     continue;



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