The format should only be manipulated by the bar_fmt function or the
user. Thus, delete extra space when outputting the window name and move
the strlcat(3) call that appends four spaces where it belongs. Inside
the window title conditional.
Noticed by LordReg.
if (r->ws->focus->floating)
strlcat(s, "(f) ", sz);
strlcat(s, (char *)title, sz);
if (r->ws->focus->floating)
strlcat(s, "(f) ", sz);
strlcat(s, (char *)title, sz);
if (title_class_enabled && r != NULL && r->ws != NULL &&
r->ws->focus != NULL)
strlcat(fmtnew, ":", sz);
if (title_class_enabled && r != NULL && r->ws != NULL &&
r->ws->focus != NULL)
strlcat(fmtnew, ":", sz);
- strlcat(fmtnew, "+T", sz);
+ strlcat(fmtnew, "+T ", sz);
- strlcat(fmtnew, " ", sz);
- strlcat(fmtnew, "+64W", sz);
+ strlcat(fmtnew, "+64W ", sz);
/* finally add the action script output and the version */
/* finally add the action script output and the version */
- strlcat(fmtnew, " +A +V", sz);
+ strlcat(fmtnew, " +A +V", sz);
}
/* replaces the bar format character sequences (like in tmux(1)) */
}
/* replaces the bar format character sequences (like in tmux(1)) */