projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b21c42
)
Show class/name if window is unnamed
author
Mikael Magnusson
<mikachu@gmail.com>
Tue, 18 Aug 2015 18:26:44 +0000
(20:26 +0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Mon, 12 Mar 2018 12:39:11 +0000
(13:39 +0100)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index f110a66eeff2c956a4150c3d1529c8ed4c436747..1d2391a33f7d0219c575c202c6c1cd2f2ba85db3 100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-2111,8
+2111,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);