forked from pool/gnome-shell-extensions
Dominique Leuenberger
1e2f03928b
- Add gnome-shell-extensions-window-list-app-icon-not-shown.patch: Fix window-list doesn't show app icon on taskbar when working in wayland (bgo#745064). OBS-URL: https://build.opensuse.org/request/show/542978 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=156
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From 9e9064463b6a175d39ed1bda5e10a2a51f9db962 Mon Sep 17 00:00:00 2001
|
|
From: Xiaoguang Wang <xwang@suse.com>
|
|
Date: Sat, 4 Nov 2017 15:16:29 +0800
|
|
Subject: [PATCH] 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.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=745064
|
|
---
|
|
extensions/window-list/extension.js | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
|
|
index f01b872..6d341ce 100644
|
|
--- a/extensions/window-list/extension.js
|
|
+++ b/extensions/window-list/extension.js
|
|
@@ -167,6 +167,11 @@ const WindowTitle = new Lang.Class({
|
|
this._notifyAppId =
|
|
this._metaWindow.connect('notify::gtk-application-id',
|
|
Lang.bind(this, this._updateIcon));
|
|
+
|
|
+ let appSys = Shell.AppSystem.get_default();
|
|
+ this._appStateChangedSignalId =
|
|
+ appSys.connect('app-state-changed', Lang.bind(this, this._updateIcon));
|
|
+
|
|
this._updateIcon();
|
|
|
|
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
|
|
@@ -210,6 +215,9 @@ const WindowTitle = new Lang.Class({
|
|
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);
|
|
}
|
|
});
|
|
|
|
--
|
|
2.13.6
|