]> Dogcows Code - chaz/openbox/commitdiff
put the hostname in icon titles too
authorDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 14:08:54 +0000 (14:08 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 14:08:54 +0000 (14:08 +0000)
openbox/client.c

index 2454e198e706787e23562d4a469520b774f566ef..9c8b2ee172cd3fd183ed85d433c676e75ed85091 100644 (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)
This page took 0.033829 seconds and 4 git commands to generate.