fdoNotificationDaemon: Show banner for resident notification when app has focus

This drops an undocumented behavior that was introduced for media
players (they now use MPRIS anyways).
This commit is contained in:
Julian Sparber 2024-04-10 19:37:37 +02:00
parent 6055d49802
commit 37c3ce5060

View file

@ -357,12 +357,6 @@ class FdoNotificationDaemonSource extends MessageTray.Source {
this.notify('icon');
}
let tracker = Shell.WindowTracker.get_default();
// Acknowledge notifications that are resident and their app has the
// current focus so that we don't show a banner.
if (notification.resident && this.app && tracker.focus_app === this.app)
notification.acknowledged = true;
this.addNotification(notification);
}