[gnome-shell] layout: Fix strut heuristics for multi-monitor
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Fix strut heuristics for multi-monitor
- Date: Mon, 24 Dec 2012 02:18:15 +0000 (UTC)
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]