From 4cb78a170c6daa488a90dffb60224fcf2b76fbf0 Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Mon, 14 Aug 2006 08:38:26 +0200 Subject: removed viewnext/viewprev --- event.c | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 9da7ac40..bc7d42c2 100644 --- a/event.c +++ b/event.c @@ -102,30 +102,16 @@ buttonpress(XEvent *e) XButtonPressedEvent *ev = &e->xbutton; if(barwin == ev->window) { - switch(ev->button) { - default: - x = 0; - for(a.i = 0; a.i < ntags; a.i++) { - x += textw(tags[a.i]); - if(ev->x < x) { - if(ev->button == Button3) - toggleview(&a); - else - view(&a); - return; - } + x = 0; + for(a.i = 0; a.i < ntags; a.i++) { + x += textw(tags[a.i]); + if(ev->x < x) { + if(ev->button == Button3) + toggleview(&a); + else + view(&a); + return; } - if(ev->button == Button1) - viewprev(&a); - else if(ev->button == Button3) - viewnext(&a); - break; - case Button4: - viewprev(&a); - break; - case Button5: - viewnext(&a); - break; } } else if((c = getclient(ev->window))) { -- cgit v1.2.3