diff -r 854a324f5c92 -r d036b2f17567 dwm.c --- a/dwm.c Sun Sep 16 13:27:33 2007 +0200 +++ b/dwm.c Sun Sep 16 13:42:37 2007 +0200 @@ -342,8 +342,12 @@ restack(); movemouse(c); } - else if(ev->button == Button2) - zoom(NULL); + else if(ev->button == Button2) { + if(isarrange(tile) && !c->isfixed && c->isfloating) + togglefloating(NULL); + else + zoom(NULL); + } else if(ev->button == Button3 && !c->isfixed) { if(!isarrange(floating) && !c->isfloating) togglefloating(NULL);