fixed two label click related things

This commit is contained in:
Anselm R. Garbe 2006-03-09 16:23:18 +01:00
parent 1368f972fc
commit 91f324448d
2 changed files with 2 additions and 6 deletions

View File

@ -68,6 +68,7 @@ handle_buttonpress(XEvent *e)
if(blitz_ispointinrect(ev->x, ev->y, &label[i]->rect)) {
snprintf(buf, sizeof(buf), "LB %s %d\n", label[i]->name, ev->button);
write_event(buf);
return;
}
}
else if((c = win2clientframe(ev->window))) {

View File

@ -122,12 +122,7 @@ do
xwrite /bar/$1/colors $WMII_NORMCOLORS
oldtag=$1;;
LB)
if wmiir read /tags | awk "\$NF == $1 {exit 1}"
then
: # no tag label
else
xwrite /ctl select $1
fi;;
xwrite /ctl select $1;;
K)
case "$1" in
$MODKEY-Control-c)