|
|
@ -106,16 +106,18 @@ buttonpress(XEvent *e)
|
|
|
|
|
|
|
|
|
|
|
|
if(barwin == ev->window) {
|
|
|
|
if(barwin == ev->window) {
|
|
|
|
if(ev->x < modew)
|
|
|
|
if(ev->x < modew)
|
|
|
|
return;
|
|
|
|
togglemode(NULL);
|
|
|
|
x = modew;
|
|
|
|
else {
|
|
|
|
for(a.i = 0; a.i < ntags; a.i++) {
|
|
|
|
x = modew;
|
|
|
|
x += textw(tags[a.i]);
|
|
|
|
for(a.i = 0; a.i < ntags; a.i++) {
|
|
|
|
if(ev->x < x) {
|
|
|
|
x += textw(tags[a.i]);
|
|
|
|
if(ev->button == Button1)
|
|
|
|
if(ev->x < x) {
|
|
|
|
view(&a);
|
|
|
|
if(ev->button == Button1)
|
|
|
|
else if(ev->button == Button3)
|
|
|
|
view(&a);
|
|
|
|
toggleview(&a);
|
|
|
|
else if(ev->button == Button3)
|
|
|
|
return;
|
|
|
|
toggleview(&a);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|