aewl
diff event.c @ 362:ba6c55e1b9b2
trying a different configuration
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 25 Aug 2006 15:48:44 +0200 |
parents | c2a65784cb71 |
children | fc9d35252ab4 |
line diff
1.1 --- a/event.c Fri Aug 25 15:37:00 2006 +0200 1.2 +++ b/event.c Fri Aug 25 15:48:44 2006 +0200 1.3 @@ -105,21 +105,19 @@ 1.4 XButtonPressedEvent *ev = &e->xbutton; 1.5 1.6 if(barwin == ev->window) { 1.7 - if(ev->x < modew) 1.8 - togglemode(NULL); 1.9 - else { 1.10 - x = modew; 1.11 - for(a.i = 0; a.i < ntags; a.i++) { 1.12 - x += textw(tags[a.i]); 1.13 - if(ev->x < x) { 1.14 - if(ev->button == Button1) 1.15 - view(&a); 1.16 - else if(ev->button == Button3) 1.17 - toggleview(&a); 1.18 - return; 1.19 - } 1.20 + x = 0; 1.21 + for(a.i = 0; a.i < ntags; a.i++) { 1.22 + x += textw(tags[a.i]); 1.23 + if(ev->x < x) { 1.24 + if(ev->button == Button1) 1.25 + view(&a); 1.26 + else if(ev->button == Button3) 1.27 + toggleview(&a); 1.28 + return; 1.29 } 1.30 } 1.31 + if(ev->x < x + bmw) 1.32 + togglemode(NULL); 1.33 } 1.34 else if((c = getclient(ev->window))) { 1.35 focus(c);