Commit 22e416c0 by Florian Müllner

window-list: Fix icons not showing for some windows on wayland

On wayland, the properties that are used for application matching
are generally set after the window has been created, so it is
normal that buttons start with the fallback icon. While we already
track the properties that are relevant for app matching, our signal
handler may run before the window is matched to its app.

Make sure the WindowTracker gets to process those signals first by
using connect_after() for our own handlers.

Fixes #10.
parent 9dc183af
Pipeline #1718 passed with stage
in 3 minutes 17 seconds
......@@ -156,11 +156,11 @@ class WindowTitle {
this._textureCache.connect('icon-theme-changed',
this._updateIcon.bind(this));
this._notifyWmClass =
this._metaWindow.connect('notify::wm-class',
this._updateIcon.bind(this));
this._metaWindow.connect_after('notify::wm-class',
this._updateIcon.bind(this));
this._notifyAppId =
this._metaWindow.connect('notify::gtk-application-id',
this._updateIcon.bind(this));
this._metaWindow.connect_after('notify::gtk-application-id',
this._updateIcon.bind(this));
this._updateIcon();
this.actor.connect('destroy', this._onDestroy.bind(this));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment