Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
4aea423
)
simplified dotile(), removed misleading line
author
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 11:47:30 +0000
(13:47 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 11:47:30 +0000
(13:47 +0200)
view.c
diff
|
blob
|
history
diff --git
a/view.c
b/view.c
index
61144df
..
6ca82d1
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) / 100;
stackw = sw;
stackh = sh - bh - md;
}
else {
stackw = sw;
stackh = sh - bh - md;
}
else {
+ md = (sw * master) / 100;
stackw = sw - md;
stackh = sh - bh;
}
stackw = sw - md;
stackh = sh - bh;
}