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
This commit is contained in:
parent
2d814bfc5e
commit
742155c384
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user