Browse Source

adding some prevention that master clients get smaller than bh

main
Anselm R. Garbe 18 years ago
parent
commit
d939f301fa
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      view.c

+ 2
- 1
view.c View File

@ -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();
}


Loading…
Cancel
Save