Merge branch 'drop_secret_fdo_notification_behavior' into 'main'

fdoNotificationDaemon: Drop undocumented behavior

Closes #6983

See merge request GNOME/gnome-shell!3388
This commit is contained in:
Julian Sparber 2024-06-29 07:15:47 +00:00
commit 2c18f060e4
2 changed files with 0 additions and 15 deletions

View file

@ -597,13 +597,6 @@ export const Source = GObject.registerClass({
// To be overridden by subclasses
open() {
}
destroyNonResidentNotifications() {
for (let i = this.notifications.length - 1; i >= 0; i--) {
if (!this.notifications[i].resident)
this.notifications[i].destroy();
}
}
});
SignalTracker.registerDestroyableType(Source);

View file

@ -206,7 +206,6 @@ class FdoNotificationDaemon {
gicon,
useBodyMarkup: true,
sound: new MessageTray.Sound(soundFile, hints['sound-name']),
acknowledged: false,
});
notification.clearActions();
@ -357,18 +356,11 @@ 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);
}
open() {
this.openApp();
this.destroyNonResidentNotifications();
}
openApp() {