summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 020adb3b..48e0dd1a 100644
--- 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();