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
parents d1630548c3fe
children 3692c9324977
files event.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/event.c	Fri Aug 11 09:16:40 2006 +0200
     1.2 +++ b/event.c	Fri Aug 11 10:00:47 2006 +0200
     1.3 @@ -103,7 +103,7 @@
     1.4  
     1.5  	if(barwin == ev->window) {
     1.6  		switch(ev->button) {
     1.7 -		case Button1:
     1.8 +		default:
     1.9  			x = 0;
    1.10  			for(a.i = 0; a.i < ntags; a.i++) {
    1.11  				x += textw(tags[a.i]);
    1.12 @@ -112,10 +112,10 @@
    1.13  					return;
    1.14  				}
    1.15  			}
    1.16 -			focusprev(NULL);
    1.17 -			break;
    1.18 -		case Button3:
    1.19 -			focusnext(NULL);
    1.20 +			if(ev->button == Button1)
    1.21 +				viewprev(&a);
    1.22 +			else if(ev->button == Button3)
    1.23 +				viewnext(&a);
    1.24  			break;
    1.25  		case Button4:
    1.26  			viewprev(&a);