dwm-meillo
changeset 425:67f37b93ac73
fixing two off-by-ones
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 05 Sep 2006 16:11:52 +0200 |
parents | 62145595dba9 |
children | 21df917c2719 |
files | view.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/view.c Tue Sep 05 16:05:09 2006 +0200 1.2 +++ b/view.c Tue Sep 05 16:11:52 2006 +0200 1.3 @@ -193,12 +193,12 @@ 1.4 return; 1.5 1.6 if(sel == getnext(clients)) { 1.7 - if(mw + arg->i > sw - 100) 1.8 + if(mw + arg->i > sw - 100 || mw + arg->i < 100) 1.9 return; 1.10 mw += arg->i; 1.11 } 1.12 else { 1.13 - if(mw - arg->i < 100) 1.14 + if(mw - arg->i > sw - 100 || mw - arg->i < 100) 1.15 return; 1.16 mw -= arg->i; 1.17 }