aewl
diff event.c @ 356:c2a65784cb71
changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress()
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 25 Aug 2006 15:06:38 +0200 |
parents | 8a06efe5b563 |
children | ba6c55e1b9b2 |
line diff
1.1 --- a/event.c Fri Aug 25 14:46:01 2006 +0200 1.2 +++ b/event.c Fri Aug 25 15:06:38 2006 +0200 1.3 @@ -106,16 +106,18 @@ 1.4 1.5 if(barwin == ev->window) { 1.6 if(ev->x < modew) 1.7 - return; 1.8 - x = modew; 1.9 - for(a.i = 0; a.i < ntags; a.i++) { 1.10 - x += textw(tags[a.i]); 1.11 - if(ev->x < x) { 1.12 - if(ev->button == Button1) 1.13 - view(&a); 1.14 - else if(ev->button == Button3) 1.15 - toggleview(&a); 1.16 - return; 1.17 + togglemode(NULL); 1.18 + else { 1.19 + x = modew; 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 == Button1) 1.24 + view(&a); 1.25 + else if(ev->button == Button3) 1.26 + toggleview(&a); 1.27 + return; 1.28 + } 1.29 } 1.30 } 1.31 }