summaryrefslogtreecommitdiff
path: root/0001-top-icons-Don-t-use-wm_class-as-role.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-02 07:11:28 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-02 07:11:28 +0000
commitcb5b236cef314782bf6ca4dc8a3262611ce0343a (patch)
tree240469bdbd54d5f13e1752bdf40a5f69d6db6f10 /0001-top-icons-Don-t-use-wm_class-as-role.patch
parentc81a9a47a086cc5686180dc0801728fa1d7269e7 (diff)
automatic import of gnome-shell-extensionsopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-top-icons-Don-t-use-wm_class-as-role.patch')
-rw-r--r--0001-top-icons-Don-t-use-wm_class-as-role.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0001-top-icons-Don-t-use-wm_class-as-role.patch b/0001-top-icons-Don-t-use-wm_class-as-role.patch
new file mode 100644
index 0000000..b5426b0
--- /dev/null
+++ b/0001-top-icons-Don-t-use-wm_class-as-role.patch
@@ -0,0 +1,27 @@
+From f0e4618bf0752aaf094d78b4c810ebda817ccaad Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
+Date: Wed, 2 Jun 2021 17:32:21 +0200
+Subject: [PATCH] top-icons: Don't use wm_class as role
+
+This prevents adding icons for multiple instances of the same app,
+which may be desirable in some circumstances.
+---
+ extensions/top-icons/extension.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/extensions/top-icons/extension.js b/extensions/top-icons/extension.js
+index 79e2f42..3dfba46 100644
+--- a/extensions/top-icons/extension.js
++++ b/extensions/top-icons/extension.js
+@@ -63,7 +63,7 @@ class SysTray {
+ button.destroy();
+ });
+
+- let role = wmClass || `${icon}`;
++ const role = `${icon}`;
+ Main.panel.addToStatusArea(role, button);
+ }
+
+--
+2.32.0
+