Browse Source

fixing two off-by-ones

main
Anselm R. Garbe 18 years ago
parent
commit
a82e7b765e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      view.c

+ 2
- 2
view.c View File

@ -193,12 +193,12 @@ resizecol(Arg *arg)
return; return;
if(sel == getnext(clients)) { if(sel == getnext(clients)) {
if(mw + arg->i > sw - 100)
if(mw + arg->i > sw - 100 || mw + arg->i < 100)
return; return;
mw += arg->i; mw += arg->i;
} }
else { else {
if(mw - arg->i < 100)
if(mw - arg->i > sw - 100 || mw - arg->i < 100)
return; return;
mw -= arg->i; mw -= arg->i;
} }


Loading…
Cancel
Save