forked from mirror/dwm
adding some prevention that master clients get smaller than bh
This commit is contained in:
parent
8c4623da80
commit
d939f301fa
1 changed files with 2 additions and 1 deletions
3
view.c
3
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue