mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
commit
2c18f060e4
2 changed files with 0 additions and 15 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue