fixed missing else branch
authorAnselm R Garbe <garbeam@gmail.com>
Mon, 11 Feb 2008 20:51:04 +0000 (20:51 +0000)
committerAnselm R Garbe <garbeam@gmail.com>
Mon, 11 Feb 2008 20:51:04 +0000 (20:51 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index 020adb3..48e0dd1 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -374,7 +374,8 @@ buttonpress(XEvent *e) {
                else if(ev->button == Button2) {
                        if((floating != m->layout->arrange) && c->isfloating)
                                togglefloating(NULL);
-                       zoom(NULL);
+                       else
+                               zoom(NULL);
                }
                else if(ev->button == Button3 && !c->isfixed) {
                        restack();