From 0bd89661152591bdeca13e14526d078ada07c83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 7 Mar 2013 19:18:00 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js index 8c482bc1..bb44fa27 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));