From d1570968cf31b2b430e0007b6d51e0f9b9040ee2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 May 2007 14:08:54 +0000 Subject: [PATCH] put the hostname in icon titles too --- openbox/client.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) -- 2.44.0