dwm-meillo
changeset 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 | 4cf9ab28b36c |
children | ce3538c5c0d9 |
files | view.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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