summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-11-20 17:38:48 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-11-20 17:38:48 +0100
commit3d12c416b82e4dd0b41d627752a165cbfb96d59a (patch)
treedf7fdc935e9fd89fba632e1884c59b2d29763a61
parent840fd4f32725d8a94ba138ada75d0be6e0686b0d (diff)
downloadtabbed-3d12c416b82e4dd0b41d627752a165cbfb96d59a.tar.gz
display cmd info on tabbed-win
-rw-r--r--tabbed.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tabbed.c b/tabbed.c
index 56c9d6b..b3c3c12 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -377,7 +377,12 @@ void
focus(Client *c) {
/* If c, sel and clients are NULL, raise tabbed-win itself */
if(!c && !(c = sel ? sel : clients)) {
- XStoreName(dpy, win, "tabbed-"VERSION);
+ char buf[BUFSIZ] = "tabbed-"VERSION" ::";
+ size_t i, n;
+
+ for(i = 0, n = strlen(buf); cmd[i] && n < sizeof buf; i++)
+ n += snprintf(&buf[n], sizeof buf - n, " %s", cmd[i]);
+ XStoreName(dpy, win, buf);
XRaiseWindow(dpy, win);
return;
}