layout: Fix strut heuristics for multi-monitor

Spotted while going through the code.

https://bugzilla.gnome.org/show_bug.cgi?id=690666
This commit is contained in:
Jasper St. Pierre 2012-12-23 00:47:04 -05:00
parent 5566aa4588
commit 5274166f8c

View File

@ -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;