put the hostname in icon titles too

This commit is contained in:
Dana Jansens 2007-05-25 14:08:54 +00:00
parent 38d1f2cba6
commit d1570968cf

View file

@ -1985,8 +1985,14 @@ void client_update_title(ObClient *self)
PROP_GETS(self->window, wm_icon_name, utf8, &data)))
data = g_strdup(self->title);
PROP_SETS(self->window, net_wm_visible_icon_name, data);
self->icon_title = data;
if (self->client_machine) {
visible = g_strdup_printf("%s (%s)", data, self->client_machine);
g_free(data);
} else
visible = data;
PROP_SETS(self->window, net_wm_visible_icon_name, visible);
self->icon_title = visible;
}
void client_update_strut(ObClient *self)