[gnome-shell-extensions] window-list: Don't shift message tray when on different monitors



commit f007807ea1d6c1d64dcc7b24040bbff04806c656
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Apr 15 21:37:13 2014 +0200

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 714142c..32f15af 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;


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