1
0
mirror of git://git.suckless.org/dwm synced 2024-12-13 02:36:36 +00:00

fixing two off-by-ones

This commit is contained in:
Anselm R. Garbe 2006-09-05 16:11:52 +02:00
parent 0ed0fa4d5b
commit a82e7b765e

4
view.c
View File

@ -193,12 +193,12 @@ resizecol(Arg *arg)
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;
}