adding some prevention that master clients get smaller than bh

This commit is contained in:
Anselm R. Garbe 2007-01-05 15:16:39 +01:00
parent 8c4623da80
commit d939f301fa

3
view.c
View File

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