From 0b8514dc7d075f4fd6682da7037af405d9cc97ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 18 Jun 2021 23:15:05 +0200 Subject: [PATCH] messageTray: Do not show low priority notifications Low priority notifications are meant for information that doesn't require immediate attention, so it makes sense to not show a banner for them; they'll still appear in the notification list in the calendar. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4265 Part-of: --- js/ui/messageTray.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 654bada6b..8a5c262a9 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -771,6 +771,9 @@ var Source = GObject.registerClass({ notification.acknowledged = false; this.pushNotification(notification); + if (notification.urgency === Urgency.LOW) + return; + if (this.policy.showBanners || notification.urgency == Urgency.CRITICAL) this.emit('notification-show', notification); }