From 742155c3846b250b2c5a13a62b87b81394374580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 9 Mar 2017 15:42:36 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 32e3c4c76..0c7a5e4cd 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();