1
0
mirror of git://git.suckless.org/dwm synced 2024-12-17 12:44:58 +00:00

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

This commit is contained in:
Anselm R.Garbe 2006-08-11 10:00:47 +02:00
parent 8278f0a6be
commit 7d4184dc5c

10
event.c
View File

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