From: Dana Jansens Date: Fri, 25 May 2007 14:08:54 +0000 (+0000) Subject: put the hostname in icon titles too X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d1570968cf31b2b430e0007b6d51e0f9b9040ee2;p=chaz%2Fopenbox put the hostname in icon titles too --- diff --git a/openbox/client.c b/openbox/client.c index 2454e198..9c8b2ee1 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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)