Explorar el Código

adding some prevention that master clients get smaller than bh

Anselm R. Garbe hace 19 años
padre
commit
d939f301fa
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      view.c

+ 2 - 1
view.c

@@ -192,9 +192,10 @@ focusprev(Arg *arg) {
 
 void
 incnmaster(Arg *arg) {
-	if(nmaster + arg->i < 1)
+	if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh))
 		return;
 	nmaster += arg->i;
+
 	arrange();
 }