fixing two off-by-ones
This commit is contained in:
parent
0ed0fa4d5b
commit
a82e7b765e
4
view.c
4
view.c
@ -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…
Reference in New Issue
Block a user