sanders patch for b2 toggle

This commit is contained in:
arg@suckless.org 2007-10-29 12:42:58 +01:00
parent 34e7872c89
commit 3033d45d1c

2
dwm.c
View file

@ -340,7 +340,7 @@ buttonpress(XEvent *e) {
movemouse(c); movemouse(c);
} }
else if(ev->button == Button2) { else if(ev->button == Button2) {
if((floating != layout->arrange) && !c->isfixed && c->isfloating) if((floating != layout->arrange) && c->isfloating)
togglefloating(NULL); togglefloating(NULL);
else else
zoom(NULL); zoom(NULL);