diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-05-09 10:12:55 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-09 10:12:55 +0200 |
| commit | f7bdb39d9e8f7f9de033b8e4ba187ef34b34a571 (patch) | |
| tree | 32d824273e0095d62d77a4e96099b865ad1543e2 | |
| parent | fixing remaining space calculation (diff) | |
| download | dwm-f7bdb39d9e8f7f9de033b8e4ba187ef34b34a571.tar.gz dwm-f7bdb39d9e8f7f9de033b8e4ba187ef34b34a571.zip | |
s/remain/remainder/
Diffstat (limited to '')
| -rw-r--r-- | layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -15,7 +15,7 @@ static unsigned int nmaster = NMASTER; | |||
| 15 | 15 | ||
| 16 | static void | 16 | static void |
| 17 | tile(void) { | 17 | tile(void) { |
| 18 | unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th, remain; | 18 | unsigned int i, n, nx, ny, nw, nh, mw, mh, tw, th, remainder; |
| 19 | Client *c; | 19 | Client *c; |
| 20 | 20 | ||
| 21 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) | 21 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
| @@ -24,7 +24,7 @@ tile(void) { | |||
| 24 | mh = (n > nmaster) ? wah / nmaster : wah / (n > 0 ? n : 1); | 24 | mh = (n > nmaster) ? wah / nmaster : wah / (n > 0 ? n : 1); |
| 25 | mw = (n > nmaster) ? (waw * masterw) / 1000 : waw; | 25 | mw = (n > nmaster) ? (waw * masterw) / 1000 : waw; |
| 26 | th = (n > nmaster) ? wah / (n - nmaster) : 0; | 26 | th = (n > nmaster) ? wah / (n - nmaster) : 0; |
| 27 | remain = (n > nmaster) ? wah - th * (n - nmaster) : 0; | 27 | remainder = (n > nmaster) ? wah - th * (n - nmaster) : 0; |
| 28 | tw = waw - mw; | 28 | tw = waw - mw; |
| 29 | 29 | ||
| 30 | for(i = 0, c = clients; c; c = c->next) | 30 | for(i = 0, c = clients; c; c = c->next) |
| @@ -49,7 +49,7 @@ tile(void) { | |||
| 49 | ny += (i - nmaster) * th; | 49 | ny += (i - nmaster) * th; |
| 50 | nh = th - 2 * c->border; | 50 | nh = th - 2 * c->border; |
| 51 | if (i == n - 1) | 51 | if (i == n - 1) |
| 52 | nh += remain; | 52 | nh += remainder; |
| 53 | } | 53 | } |
| 54 | else /* fallback if th <= 2 * c->border */ | 54 | else /* fallback if th <= 2 * c->border */ |
| 55 | nh = wah - 2 * c->border; | 55 | nh = wah - 2 * c->border; |
