diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 08:38:26 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 08:38:26 +0200 |
commit | 4cb78a170c6daa488a90dffb60224fcf2b76fbf0 (patch) | |
tree | 1405d6c24d3444b2bf039181ac169e092d285585 /event.c | |
parent | 2c66b422e75109562e6ebfb6247300b916e1551a (diff) |
removed viewnext/viewprev
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 32 |
1 files changed, 9 insertions, 23 deletions
@@ -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))) { |