From a582033ae5552dbd444623207a49473a2ebfeac8 Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 27 Oct 2023 03:10:20 +0900 Subject: [PATCH] NotificationStack: Check if notification was already shown (#1748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Danielle Foré --- data/gala.metainfo.xml.in | 3 ++- src/NotificationStack.vala | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/gala.metainfo.xml.in b/data/gala.metainfo.xml.in index 0b8c1876c..c0df9ae44 100644 --- a/data/gala.metainfo.xml.in +++ b/data/gala.metainfo.xml.in @@ -25,7 +25,7 @@ contact_at_elementary.io - +

Improvements:

    @@ -33,6 +33,7 @@
+ Notifications appear in the middle of the screen Scheduled switch to dark style does not dim the wallpaper after cold reboot on elementary OS 7.1 Alt + Shift unnecessarily blocked when there is only one keyboard layout diff --git a/src/NotificationStack.vala b/src/NotificationStack.vala index eb991b70a..45712ed22 100644 --- a/src/NotificationStack.vala +++ b/src/NotificationStack.vala @@ -48,7 +48,7 @@ public class Gala.NotificationStack : Object { update_stack_allocation (); } - public void show_notification (Meta.WindowActor notification, bool animate) { + public void show_notification (Meta.WindowActor notification, bool animate) requires (!notifications.contains (notification)) { notification.set_pivot_point (0.5f, 0.5f); unowned Meta.Window window = notification.get_meta_window ();