diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-10-05 13:47:30 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-10-05 13:47:30 +0200 |
| commit | 69408d384d55b69f66ea52f8767eb577a34d9ae2 (patch) | |
| tree | 596329b242870290468f1065a69b51eb16e15b53 /view.c | |
| parent | final fix for man page (diff) | |
| download | dwm-69408d384d55b69f66ea52f8767eb577a34d9ae2.tar.gz dwm-69408d384d55b69f66ea52f8767eb577a34d9ae2.zip | |
simplified dotile(), removed misleading line
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -103,18 +103,19 @@ dofloat(Arg *arg) { | |||
| 103 | */ | 103 | */ |
| 104 | void | 104 | void |
| 105 | dotile(Arg *arg) { | 105 | dotile(Arg *arg) { |
| 106 | int i, n, stackw, stackh, tw, th; | 106 | unsigned int i, n, md, stackw, stackh, tw, th; |
| 107 | unsigned int md = ((stackpos == StackBottom ? sh - bh : sw) * master) / 100; | ||
| 108 | Client *c; | 107 | Client *c; |
| 109 | 108 | ||
| 110 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) | 109 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
| 111 | n++; | 110 | n++; |
| 112 | 111 | ||
| 113 | if(stackpos == StackBottom) { | 112 | if(stackpos == StackBottom) { |
| 113 | md = ((sh - bh) * master) / 100; | ||
| 114 | stackw = sw; | 114 | stackw = sw; |
| 115 | stackh = sh - bh - md; | 115 | stackh = sh - bh - md; |
| 116 | } | 116 | } |
| 117 | else { | 117 | else { |
| 118 | md = (sw * master) / 100; | ||
| 118 | stackw = sw - md; | 119 | stackw = sw - md; |
| 119 | stackh = sh - bh; | 120 | stackh = sh - bh; |
| 120 | } | 121 | } |
