Mercurial > dwm-meillo
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 wrap: on
line diff
--- a/event.c Fri Aug 25 14:46:01 2006 +0200 +++ b/event.c Fri Aug 25 15:06:38 2006 +0200 @@ -106,16 +106,18 @@ if(barwin == ev->window) { if(ev->x < modew) - return; - 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; + 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; + } } } }