Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
0384fae
)
small boundary check fix
author
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 16:23:28 +0000
(18:23 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 16:23:28 +0000
(18:23 +0200)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index
1ca1027
..
70b0253
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-248,12
+248,12
@@
resizecol(Arg *arg) {
return;
if(sel == getnext(clients)) {
return;
if(sel == getnext(clients)) {
- if(master + arg->i > 95
|| master + arg->i < 5
)
+ if(master + arg->i > 95
0 || master + arg->i < 50
)
return;
master += arg->i;
}
else {
return;
master += arg->i;
}
else {
- if(master - arg->i > 95
|| master - arg->i < 5
)
+ if(master - arg->i > 95
0 || master - arg->i < 50
)
return;
master -= arg->i;
}
return;
master -= arg->i;
}