Blame SOURCES/0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch

0999a2
From afa3fc7be62cf70c9f6c6954e9cf5b49581269fb Mon Sep 17 00:00:00 2001
0999a2
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
0999a2
Date: Wed, 20 May 2015 16:44:00 +0200
0999a2
Subject: [PATCH] app: Fall back to window title instead of WM_CLASS
0999a2
0999a2
It's a bad fallback as it's clearly window-specific (rather than
0999a2
app-specific), but it likely looks prettier when we fail to associate
0999a2
a .desktop file ...
0999a2
---
0999a2
 src/shell-app.c | 2 +-
0999a2
 1 file changed, 1 insertion(+), 1 deletion(-)
0999a2
0999a2
diff --git a/src/shell-app.c b/src/shell-app.c
0999a2
index 62ba2ec73..dc0e1c732 100644
0999a2
--- a/src/shell-app.c
0999a2
+++ b/src/shell-app.c
0999a2
@@ -293,7 +293,7 @@ shell_app_get_name (ShellApp *app)
0999a2
       const char *name = NULL;
0999a2
 
0999a2
       if (window)
0999a2
-        name = meta_window_get_wm_class (window);
0999a2
+        name = meta_window_get_title (window);
0999a2
       if (!name)
0999a2
         name = C_("program", "Unknown");
0999a2
       return name;
0999a2
-- 
0999a2
2.31.1
0999a2