aewl

diff view.c @ 656:c30805f6bb08

adding some prevention that master clients get smaller than bh
author Anselm R. Garbe <arg@suckless.org>
date Fri, 05 Jan 2007 15:16:39 +0100
parents 04734db9a219
children b4d1ef7e407f
line diff
     1.1 --- a/view.c	Fri Jan 05 15:11:01 2007 +0100
     1.2 +++ b/view.c	Fri Jan 05 15:16:39 2007 +0100
     1.3 @@ -192,9 +192,10 @@
     1.4  
     1.5  void
     1.6  incnmaster(Arg *arg) {
     1.7 -	if(nmaster + arg->i < 1)
     1.8 +	if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh))
     1.9  		return;
    1.10  	nmaster += arg->i;
    1.11 +
    1.12  	arrange();
    1.13  }
    1.14