[gnome-shell-extensions] window-list: connect_after() to 'window-added'



commit 0bd89661152591bdeca13e14526d078ada07c83f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Mar 7 19:18:00 2013 +0100

    window-list: connect_after() to 'window-added'
    
    We switched from using the window icon to using the associated
    application's icon; however when we create the window list item
    from a handler to the 'window-added' signal, the association of
    window and application might not exist yet, as WindowTracker uses
    the same signal to create the association. Use connect_after()
    for creating the window list item to make sure that WindowTracker's
    signal handler has run already.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695389

 extensions/window-list/extension.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 8c482bc..bb44fa2 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -530,8 +530,8 @@ const WindowList = new Lang.Class({
 
             let signals = { windowAddedId: 0, windowRemovedId: 0 };
             signals._windowAddedId =
-                workspace.connect('window-added',
-                                  Lang.bind(this, this._onWindowAdded));
+                workspace.connect_after('window-added',
+                                        Lang.bind(this, this._onWindowAdded));
             signals._windowRemovedId =
                 workspace.connect('window-removed',
                                   Lang.bind(this, this._onWindowRemoved));


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