diff --git a/gnome-shell-extensions-window-list-app-icon-not-shown.patch b/gnome-shell-extensions-window-list-app-icon-not-shown.patch new file mode 100644 index 0000000..d7ba760 --- /dev/null +++ b/gnome-shell-extensions-window-list-app-icon-not-shown.patch @@ -0,0 +1,41 @@ +From 9e9064463b6a175d39ed1bda5e10a2a51f9db962 Mon Sep 17 00:00:00 2001 +From: Xiaoguang Wang +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 diff --git a/gnome-shell-extensions.changes b/gnome-shell-extensions.changes index 4a45969..bde22cb 100644 --- a/gnome-shell-extensions.changes +++ b/gnome-shell-extensions.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 20 03:05:29 UTC 2017 - xwang@suse.com + +- 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). + ------------------------------------------------------------------- Thu Nov 9 01:37:47 UTC 2017 - xwang@suse.com diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index fa66098..d796fbe 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -38,6 +38,8 @@ Patch1: gnome-shell-add-app-to-desktop.patch Patch2: gnome-shell-favorites-menu-at-end.patch # PATCH-FEATURE-SLE sle-classic-lock-screen-background.patch bsc#1007468 xwang@suse.com -- add SUSE logo on lock screen when auth is requested Patch3: sle-classic-lock-screen-background.patch +# PATCH-FIX-UPSTREAM gnome-shell-extensions-window-list-app-icon-not-shown.patch bgo#745064 xwang@suse.com -- window-list application icon don't show on taskbar +Patch4: gnome-shell-extensions-window-list-app-icon-not-shown.patch ## NOTE keep SLE Classic patch at the bottom # PATCH-FIX-SLE gse-sle-classic-ext.patch Fate#318572 cxiong@suse.com -- add sle classic support Patch1000: gse-sle-classic-ext.patch @@ -105,6 +107,7 @@ translation-update-upstream gnome-patch-translation-prepare %patch3 -p1 %endif +%patch4 -p1 %patch1000 -p1 ##gnome-patch-translation-update # In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome