Просмотр исходного кода

fixed exit condition in togglemax()

Anselm R. Garbe 18 лет назад
Родитель
Сommit
92105e7862
1 измененных файлов с 1 добавлено и 1 удалено
  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;