From 26981d9ab8fa402717d4e44216e9991d90bbb592 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 18 Aug 2015 20:26:44 +0200 Subject: [PATCH] Show class/name if window is unnamed --- openbox/client.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index f7798a87..a16df330 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2112,8 +2112,14 @@ void client_update_title(ObClient *self) http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html */ data = g_strdup(""); - } else - data = g_strdup(_("Unnamed Window")); + } else { + if (self->class && *self->class) + data = g_strdup(self->class); + else if (self->name && *self->name) + data = g_strdup(self->name); + else + data = g_strdup(_("Unnamed Window")); + } } } self->original_title = g_strdup(data); -- 2.34.1