Accepting request 542978 from home:xiaoguang_wang:branches:GNOME:Factory
- 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
This commit is contained in:
parent
58a3b7dfc4
commit
1e2f03928b
41
gnome-shell-extensions-window-list-app-icon-not-shown.patch
Normal file
41
gnome-shell-extensions-window-list-app-icon-not-shown.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
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
|
@ -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
|
Thu Nov 9 01:37:47 UTC 2017 - xwang@suse.com
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ Patch1: gnome-shell-add-app-to-desktop.patch
|
|||||||
Patch2: gnome-shell-favorites-menu-at-end.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
|
# 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
|
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
|
## 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
|
# PATCH-FIX-SLE gse-sle-classic-ext.patch Fate#318572 cxiong@suse.com -- add sle classic support
|
||||||
Patch1000: gse-sle-classic-ext.patch
|
Patch1000: gse-sle-classic-ext.patch
|
||||||
@ -105,6 +107,7 @@ translation-update-upstream
|
|||||||
gnome-patch-translation-prepare
|
gnome-patch-translation-prepare
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch4 -p1
|
||||||
%patch1000 -p1
|
%patch1000 -p1
|
||||||
##gnome-patch-translation-update
|
##gnome-patch-translation-update
|
||||||
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
||||||
|
Loading…
Reference in New Issue
Block a user