diff --git a/src/AbstractBubble.vala b/src/AbstractBubble.vala index 53974b7..197fe0b 100644 --- a/src/AbstractBubble.vala +++ b/src/AbstractBubble.vala @@ -112,6 +112,8 @@ public class Notifications.AbstractBubble : Gtk.Window { motion_controller.leave.connect (pointer_leave); carousel.add_controller (motion_controller); + accessible_role = ALERT; + child.realize.connect (() => { if (Gdk.Display.get_default () is Gdk.Wayland.Display) { // We have to wrap in Idle otherwise the Meta.Window of the WaylandSurface in Gala is still null diff --git a/src/Bubble.vala b/src/Bubble.vala index 88b068e..b556b25 100644 --- a/src/Bubble.vala +++ b/src/Bubble.vala @@ -23,6 +23,17 @@ public class Notifications.Bubble : AbstractBubble { content_area.add_child (contents); content_area.visible_child = contents; + + map.connect (() => { + ((Gtk.Window) get_root ()).announce ( + /// TRANSLATORS: first argument is an app name, the second and third arguments are notification summary and body + _("Notification from %s: %s %s").printf ( + notification.app_name, + notification.summary, + notification.body + ), HIGH + ); + }); } }