projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed0fa4
)
fixing two off-by-ones
author
Anselm R. Garbe
<arg@10kloc.org>
Tue, 5 Sep 2006 14:11:52 +0000
(16:11 +0200)
committer
Anselm R. Garbe
<arg@10kloc.org>
Tue, 5 Sep 2006 14:11:52 +0000
(16:11 +0200)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index 587c53a9258c1d028bc0caa2c2e9d33fe3210d28..c005a3343e1e3a4f2704f2261ff5ed40e348ea52 100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-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;
}