[gnome-shell/wip/rstrode/login-screen-extensions: 65/134] app: Fall back to window title instead of WM_CLASS
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 65/134] app: Fall back to window title instead of WM_CLASS
- Date: Thu, 26 Aug 2021 19:31:00 +0000 (UTC)
commit 5b108e979a3716127bb97b80217ed13f52310367
Author: Florian Müllner <fmuellner gnome org>
Date: Wed May 20 16:44:00 2015 +0200
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 10efa9135f..7d40186c96 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -259,7 +259,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]