Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
small boundary check fix
[dwm.git]
/
view.c
diff --git
a/view.c
b/view.c
index
61144df
..
70b0253
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-103,18
+103,19
@@
dofloat(Arg *arg) {
*/
void
dotile(Arg *arg) {
*/
void
dotile(Arg *arg) {
- int i, n, stackw, stackh, tw, th;
- unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100;
+ unsigned int i, n, md, stackw, stackh, tw, th;
Client *c;
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
if(stackpos == StackBottom) {
Client *c;
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
if(stackpos == StackBottom) {
+ md = ((sh - bh) * master) / 1000;
stackw = sw;
stackh = sh - bh - md;
}
else {
stackw = sw;
stackh = sh - bh - md;
}
else {
+ md = (sw * master) / 1000;
stackw = sw - md;
stackh = sh - bh;
}
stackw = sw - md;
stackh = sh - bh;
}
@@
-247,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;
}