Mercurial > aewl
changeset 253:7a11e4312b17
realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Fri, 11 Aug 2006 10:00:47 +0200 (2006-08-11) |
parents | d1630548c3fe |
children | 3692c9324977 |
files | event.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/event.c Fri Aug 11 09:16:40 2006 +0200 +++ b/event.c Fri Aug 11 10:00:47 2006 +0200 @@ -103,7 +103,7 @@ 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 @@ 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);