dwm-meillo
diff view.c @ 425:67f37b93ac73
fixing two off-by-ones
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 05 Sep 2006 16:11:52 +0200 |
parents | 6ba5dd429122 |
children | 21df917c2719 |
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 }