From f007807ea1d6c1d64dcc7b24040bbff04806c656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 15 Apr 2014 21:37:13 +0200 Subject: [PATCH] window-list: Don't shift message tray when on different monitors The message tray is moved to the bottom-most monitor when there are monitors below the primary monitor; in that case, we need to leave the tray alone. https://bugzilla.gnome.org/show_bug.cgi?id=728288 --- extensions/window-list/extension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index 714142c0..32f15af0 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -917,7 +917,8 @@ const WindowList = new Lang.Class({ }, _updateMessageTrayAnchor: function() { - let anchorY = this.actor.visible ? this.actor.height : 0; + let sameMonitor = Main.layoutManager.primaryIndex == Main.layoutManager.bottomIndex; + let anchorY = this.actor.visible && sameMonitor ? this.actor.height : 0; Main.messageTray.actor.anchor_y = anchorY; Main.messageTray._notificationWidget.anchor_y = -anchorY;