]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
put the hostname in icon titles too
[chaz/openbox] / 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.024098 seconds and 4 git commands to generate.