diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-02 07:11:13 +0000 |
commit | 4671d4f870417e2e0f6b0b4fadfa31570c7752fb (patch) | |
tree | e230ed83ee4a856befa7d96addd3d34d78a958b1 /0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch | |
parent | ede92676c7c3a698398455318cc45011057260d2 (diff) |
automatic import of gnome-shellopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch')
-rw-r--r-- | 0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch b/0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch new file mode 100644 index 0000000..001e896 --- /dev/null +++ b/0001-app-Fall-back-to-window-title-instead-of-WM_CLASS.patch @@ -0,0 +1,28 @@ +From afa3fc7be62cf70c9f6c6954e9cf5b49581269fb Mon Sep 17 00:00:00 2001 +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 +index 62ba2ec73..dc0e1c732 100644 +--- a/src/shell-app.c ++++ b/src/shell-app.c +@@ -293,7 +293,7 @@ shell_app_get_name (ShellApp *app) + 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; +-- +2.31.1 + |