From 5274166f8cd6bbd7b941eab99f99c2f604eaa749 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 23 Dec 2012 00:47:04 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index ae828a008..9e2dee966 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;