aewl

diff event.c @ 267:8a8ea74e1b87

removed viewnext/viewprev
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 08:38:26 +0200
parents 118d3e010e5e
children a47b3b0d7bf4
line diff
     1.1 --- a/event.c	Mon Aug 14 07:40:20 2006 +0200
     1.2 +++ b/event.c	Mon Aug 14 08:38:26 2006 +0200
     1.3 @@ -102,30 +102,16 @@
     1.4  	XButtonPressedEvent *ev = &e->xbutton;
     1.5  
     1.6  	if(barwin == ev->window) {
     1.7 -		switch(ev->button) {
     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 -				if(ev->x < x) {
    1.13 -					if(ev->button == Button3)
    1.14 -						toggleview(&a);
    1.15 -					else
    1.16 -						view(&a);
    1.17 -					return;
    1.18 -				}
    1.19 +		x = 0;
    1.20 +		for(a.i = 0; a.i < ntags; a.i++) {
    1.21 +			x += textw(tags[a.i]);
    1.22 +			if(ev->x < x) {
    1.23 +				if(ev->button == Button3)
    1.24 +					toggleview(&a);
    1.25 +				else
    1.26 +					view(&a);
    1.27 +				return;
    1.28  			}
    1.29 -			if(ev->button == Button1)
    1.30 -				viewprev(&a);
    1.31 -			else if(ev->button == Button3)
    1.32 -				viewnext(&a);
    1.33 -			break;
    1.34 -		case Button4:
    1.35 -			viewprev(&a);
    1.36 -			break;
    1.37 -		case Button5:
    1.38 -			viewnext(&a);
    1.39 -			break;
    1.40  		}
    1.41  	}
    1.42  	else if((c = getclient(ev->window))) {