# HG changeset patch # User Anselm R. Garbe # Date 1156511198 -7200 # Node ID c2a65784cb71a094874985e926c4c2112d09e78f # Parent f9543a4af9e500d79c5e5e73b2b8c460ce4595b8 changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress() diff -r f9543a4af9e5 -r c2a65784cb71 draw.c --- a/draw.c Fri Aug 25 14:46:01 2006 +0200 +++ b/draw.c Fri Aug 25 15:06:38 2006 +0200 @@ -94,7 +94,7 @@ void drawstatus() { - static const char *mode[] = { "~", "|" }; + static const char *mode[] = { "><", "|=" }; int i, x; dc.x = dc.y = 0; diff -r f9543a4af9e5 -r c2a65784cb71 event.c --- 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; + } } } }