mirror of https://github.com/0intro/wmii
merged
This commit is contained in:
commit
456afb0c12
|
@ -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) {
|
||||
|
|
|
@ -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;;
|
||||
|
|
Loading…
Reference in New Issue