This commit is contained in:
Anselm R. Garbe 2006-06-07 11:37:51 +02:00
commit 456afb0c12
2 changed files with 9 additions and 2 deletions

View File

@ -98,6 +98,11 @@ update_items(char *pattern)
unsigned int plen = strlen(pattern);
int i;
if(*pattern)
cmdw = cwidth;
else
cmdw = twidth;
curroff = prevoff = nextoff = 0;
sel = -1;
@ -140,15 +145,17 @@ draw_menu()
cmdw = cwidth;
if(cmdw && item.size)
draw.rect.width = cmdw;
blitz_drawlabel(dpy, &draw);
}
else {
cmdw = twidth;
draw.data = title;
draw.color = selcolor;
draw.rect.width = cmdw;
blitz_drawlabel(dpy, &draw);
blitz_drawborder(dpy, &draw);
}
offx += draw.rect.width;
blitz_drawlabel(dpy, &draw);
draw.align = CENTER;
if(item.size) {

View File

@ -175,7 +175,7 @@ do
$MODKEY-Shift-c)
xwrite /tag/sel/sel/sel/ctl kill;;
$MODKEY-Shift-t)
xwrite /tag/sel/sel/sel/tags "`wmiir ls /tag | sed 's,/,,; /^sel$/d' | wmiimenu`" &;;
xwrite /client/`wmiir read /tag/sel/sel/sel/index`/tags "`wmiir ls /tag | sed 's,/,,; /^sel$/d' | wmiimenu`" &;;
$MODKEY-Shift-[0-9])
xwrite /tag/sel/sel/sel/tags `echo $1 | sed 's/.*-//'`;;
esac;;