fixing two off-by-ones
Anselm R. Garbe arg@10kloc.org
Tue, 05 Sep 2006 16:11:52 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
view.c
→
view.c
@@ -193,12 +193,12 @@ if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
return; if(sel == getnext(clients)) { - if(mw + arg->i > sw - 100) + if(mw + arg->i > sw - 100 || mw + arg->i < 100) return; mw += arg->i; } else { - if(mw - arg->i < 100) + if(mw - arg->i > sw - 100 || mw - arg->i < 100) return; mw -= arg->i; }