diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 15:48:44 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 15:48:44 +0200 |
commit | e995c1b5325f88d197675950c15762d001dd80ef (patch) | |
tree | 972031f4a7c0736cd56a88366d143204a2660d0b /event.c | |
parent | e36929292e08d03c496c8134f2d29c069a45dc2c (diff) | |
download | dwm-e995c1b5325f88d197675950c15762d001dd80ef.tar.gz |
trying a different configuration
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -105,21 +105,19 @@ buttonpress(XEvent *e) XButtonPressedEvent *ev = &e->xbutton; if(barwin == ev->window) { - if(ev->x < modew) - togglemode(NULL); - else { - x = modew; - for(a.i = 0; a.i < ntags; a.i++) { - x += textw(tags[a.i]); - if(ev->x < x) { - if(ev->button == Button1) - view(&a); - else if(ev->button == Button3) - toggleview(&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 == Button1) + view(&a); + else if(ev->button == Button3) + toggleview(&a); + return; } } + if(ev->x < x + bmw) + togglemode(NULL); } else if((c = getclient(ev->window))) { focus(c); |