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

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