Commit 8547ca75 authored by Xiaoguang Wang's avatar Xiaoguang Wang Committed by sunwxg
Browse files

window-list: App icon not shown on the taskbar

Some application can't show icon when working in wayland.
Use application state change signal to update app icon.

Fixes GNOME/gnome-shell-extensions#10
parent 9dc183af
Pipeline #1680 passed with stage
in 3 minutes and 38 seconds
......@@ -161,6 +161,11 @@ class WindowTitle {
this._notifyAppId =
this._metaWindow.connect('notify::gtk-application-id',
this._updateIcon.bind(this));
let appSys = Shell.AppSystem.get_default();
this._appStateChangedSignalId =
appSys.connect('app-state-changed', this._updateIcon.bind(this));
this._updateIcon();
this.actor.connect('destroy', this._onDestroy.bind(this));
......@@ -204,6 +209,9 @@ class WindowTitle {
this._metaWindow.disconnect(this._notifyMinimizedId);
this._metaWindow.disconnect(this._notifyWmClass);
this._metaWindow.disconnect(this._notifyAppId);
let appSys = Shell.AppSystem.get_default();
appSys.disconnect(this._appStateChangedSignalId);
}
};
......
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