realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead

master
Anselm R.Garbe 2006-08-11 10:00:47 +02:00
parent 8278f0a6be
commit 7d4184dc5c
1 changed files with 5 additions and 5 deletions

10
event.c
View File

@ -103,7 +103,7 @@ buttonpress(XEvent *e)
if(barwin == ev->window) { if(barwin == ev->window) {
switch(ev->button) { switch(ev->button) {
case Button1: default:
x = 0; x = 0;
for(a.i = 0; a.i < ntags; a.i++) { for(a.i = 0; a.i < ntags; a.i++) {
x += textw(tags[a.i]); x += textw(tags[a.i]);
@ -112,10 +112,10 @@ buttonpress(XEvent *e)
return; return;
} }
} }
focusprev(NULL); if(ev->button == Button1)
break; viewprev(&a);
case Button3: else if(ev->button == Button3)
focusnext(NULL); viewnext(&a);
break; break;
case Button4: case Button4:
viewprev(&a); viewprev(&a);