mirror of git://git.suckless.org/dwm
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:
parent
8278f0a6be
commit
7d4184dc5c
10
event.c
10
event.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue