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 ...
This commit is contained in:
Florian Müllner 2015-05-20 16:44:00 +02:00 committed by Ray Strode
parent 503a9d729c
commit 585cf9c17d

View File

@ -265,7 +265,7 @@ shell_app_get_name (ShellApp *app)
const char *name = NULL; const char *name = NULL;
if (window) if (window)
name = meta_window_get_wm_class (window); name = meta_window_get_title (window);
if (!name) if (!name)
name = C_("program", "Unknown"); name = C_("program", "Unknown");
return name; return name;