changeset 999 | d036b2f17567 |
parent 998 | 854a324f5c92 |
child 1000 | 55e4d698f53a |
--- 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);