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

29 lines
896 B
Diff
Raw Normal View History

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