display cmd info on tabbed-win
This commit is contained in:
parent
840fd4f327
commit
3d12c416b8
7
tabbed.c
7
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user