fixed exit condition in togglemax()
authorAnselm R. Garbe <arg@suckless.org>
Thu, 22 Feb 2007 08:08:36 +0100
changeset 815 aca93bbd6e8d
parent 814 6fa419036c2e
child 816 f52272c62eb9
fixed exit condition in togglemax()
layout.c
--- a/layout.c	Thu Feb 22 08:02:04 2007 +0100
+++ b/layout.c	Thu Feb 22 08:08:36 2007 +0100
@@ -195,7 +195,7 @@
 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;