[gnome-shell] messageTray: Use correct monitor for fullscreen logic



commit 742155c3846b250b2c5a13a62b87b81394374580
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Mar 9 15:42:36 2017 +0100

    messageTray: Use correct monitor for fullscreen logic
    
    For most notifications, banners are suppressed while the monitor
    that is used to display banners is in fullscreen. With the old
    message tray at the bottom, this used to be the bottom-most monitor,
    but nowadays it's always the primary one, so update the corresponding
    code to use the correct monitor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779819

 js/ui/messageTray.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 32e3c4c..0c7a5e4 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1231,7 +1231,7 @@ const MessageTray = new Lang.Class({
         if (this._notificationState == State.HIDDEN) {
             let nextNotification = this._notificationQueue[0] || null;
             if (hasNotifications && nextNotification) {
-                let limited = this._busy || Main.layoutManager.bottomMonitor.inFullscreen;
+                let limited = this._busy || Main.layoutManager.primaryMonitor.inFullscreen;
                 let showNextNotification = (!limited || nextNotification.forFeedback || 
nextNotification.urgency == Urgency.CRITICAL);
                 if (showNextNotification)
                     this._showNotification();


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