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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user