diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 15:06:38 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-25 15:06:38 +0200 |
commit | d37dfa1bedbfadb5d39aa1937e77d4fd44319018 (patch) | |
tree | ac42e31987633fd32144310e21210cd0ed20a20d /event.c | |
parent | 9f35cc52fe27f694ce146356e6c71267ecd19217 (diff) | |
download | dwm-d37dfa1bedbfadb5d39aa1937e77d4fd44319018.tar dwm-d37dfa1bedbfadb5d39aa1937e77d4fd44319018.tar.gz dwm-d37dfa1bedbfadb5d39aa1937e77d4fd44319018.tar.bz2 |
changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress()
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -106,16 +106,18 @@ buttonpress(XEvent *e) 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; + } } } } |