From ff01bf68fd3c13c8f281cdc098bb6d4053f4cb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 24 Feb 2010 21:46:00 +0100 Subject: [PATCH] Simulate a focus-app change when leaving the overview When the currently focused app sends a notification while in the overview, the corresponding source icon is not removed when the overview is left. It does make some sense to treat the overview transition the same as a normal focus change, so we should update the summary view accordingly. --- js/ui/notificationDaemon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index a0774b7f8..2977adcb9 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -103,6 +103,8 @@ NotificationDaemon.prototype = { Shell.WindowTracker.get_default().connect('notify::focus-app', Lang.bind(this, this._onFocusAppChanged)); + Main.overview.connect('hidden', + Lang.bind(this, this._onFocusAppChanged)); }, _acquiredName: function() { @@ -263,7 +265,8 @@ NotificationDaemon.prototype = { ]; }, - _onFocusAppChanged: function(tracker) { + _onFocusAppChanged: function() { + let tracker = Shell.WindowTracker.get_default(); Main.messageTray.removeSourceByApp(tracker.focus_app); },