wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit b4d964e5cd1a9d28f575bc2bb723dca32bd9919f
parent 6bb011dc1eb52dff866504f4c8490c3b7ca6c4a4
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Fri, 31 Mar 2006 08:24:51 +0200

it is sufficient to prepend ~ in views only if they are in floating mode


Diffstat:
cmd/wm/bar.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/cmd/wm/bar.c b/cmd/wm/bar.c @@ -14,8 +14,12 @@ update_view_label(View *v) static char vname[256]; Label *l; tags2str(vname, sizeof(vname), v->tag, v->ntag); - if((l = name2label(vname))) - snprintf(l->data, sizeof(l->data), "%s[%d]", vname, v->sel); + if((l = name2label(vname))) { + if(!v->sel) + snprintf(l->data, sizeof(l->data), "~%s", vname); + else + cext_strlcpy(l->data, vname, sizeof(l->data)); + } } static int