[gnome-shell] Simulate a focus-app change when leaving the overview



commit ff01bf68fd3c13c8f281cdc098bb6d4053f4cb83
Author: Florian Müllner <fmuellner src gnome org>
Date:   Wed Feb 24 21:46:00 2010 +0100

    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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index a0774b7..2977adc 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);
     },
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]