diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2004-03-21 11:38:21 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2004-03-21 11:38:21 +0000 |
| commit | 3fadb639fa41b9b0dd58a475a10e56f94feee0a9 (patch) | |
| tree | a7a9f58b5949d7fb84306adc9ce9c73aea62e770 | |
| parent | 61af086dc31f5e5a68119a59eb0b19b10c71d527 (diff) | |
pasted that a bit too far down yesterday
| -rw-r--r-- | openbox/client.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/openbox/client.c b/openbox/client.c index 3fe108f5..cd58df96 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1444,7 +1444,11 @@ void client_update_title(ObClient *self) if (!PROP_GETS(self->window, net_wm_name, utf8, &data)) /* try old x stuff */ if (!PROP_GETS(self->window, wm_name, locale, &data)) - data = g_strdup("Unnamed Window"); + // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html + if (self->transient) + data = '\0'; + else + data = g_strdup("Unnamed Window"); /* did the title change? then reset the title_count */ if (old_title && 0 != strncmp(old_title, data, strlen(data))) @@ -1505,12 +1509,6 @@ void client_update_title(ObClient *self) data = vdata; } - // http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html - if (self->transient) - data = '\0'; - else - data = g_strdup("Unnamed Window"); - PROP_SETS(self->window, net_wm_visible_icon_name, data); self->icon_title = data; |
