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
This commit is contained in:
Florian Müllner
2013-03-08 14:08:00 +01:00
parent 9bf13353a8
commit 0bd8966115
+2 -2
View File
@@ -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));