- icon_popup_show(focus_cycle_popup,
- (title ? title :
- (c->iconic ? c->icon_title : c->title)),
- client_icon(p, 48, 48));
+ if (title == NULL)
+ title = g_strdup(c->iconic ? c->icon_title : c->title);
+ if (desk)
+ text = g_strdup_printf("%s [%s]", title, desk);
+ else
+ text = g_strdup(title);
+
+ icon_popup_show(focus_cycle_popup, text, client_icon(p, 48, 48));
+ g_free(text);