Explorar o código

fixed exit condition in togglemax()

Anselm R. Garbe %!s(int64=18) %!d(string=hai) anos
pai
achega
92105e7862
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layout.c

+ 1 - 1
layout.c

@@ -195,7 +195,7 @@ void
 togglemax(Arg arg) {
 	XEvent ev;
 
-	if(!sel || !sel->isversatile || sel->isfixed || lt->arrange != versatile)
+	if(!sel || (lt->arrange != versatile && !sel->isversatile) || sel->isfixed)
 		return;
 	if((sel->ismax = !sel->ismax)) {
 		sel->rx = sel->x;