[gnome-shell-extensions/wip/rstrode/heads-up-display: 61/62] top-icons: Don't use wm_class as role




commit dc231884a95038cbd16313740d2798d0ec4bbe48
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jun 2 17:32:21 2021 +0200

    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 a8eec13..2824779 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);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]