diff options
| author | bakkeby <[email protected]> | 2020-05-13 09:41:44 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-05-13 09:41:44 +0200 |
| commit | 1c6412802edea20a71da430c6b195bdfd14ca267 (patch) | |
| tree | 449643dc65c139312ce5ec1d2db3e01c19d99f8c /patch | |
| parent | 0b429b499463903ba9c9a68657657dbe22cf4f11 (diff) | |
| download | dwm-flexipatch-1c6412802edea20a71da430c6b195bdfd14ca267.tar.gz dwm-flexipatch-1c6412802edea20a71da430c6b195bdfd14ca267.zip | |
Getting rid of practically unused nbottom variable
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/horizgrid.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/patch/horizgrid.c b/patch/horizgrid.c index 9be2931..48f66ab 100644 --- a/patch/horizgrid.c +++ b/patch/horizgrid.c @@ -4,7 +4,7 @@ horizgrid(Monitor *m) { unsigned int n, i; int mx = 0, my = 0, mh = 0, mw = 0; int sx = 0, sy = 0, sh = 0, sw = 0; - int ntop, nbottom = 1; + int ntop; float mfacts = 0, sfacts = 0; int mrest, srest, mtotal = 0, stotal = 0; @@ -21,7 +21,6 @@ horizgrid(Monitor *m) { ntop = n; else { ntop = n / 2; - nbottom = n - ntop; } #if VANITYGAPS_PATCH @@ -35,7 +34,7 @@ horizgrid(Monitor *m) { mh = mh - ih - sh; sy = my + mh + ih; mw = m->ww - 2*ov - iv * (ntop - 1); - sw = m->ww - 2*ov - iv * (nbottom - 1); + sw = m->ww - 2*ov - iv * (n - ntop - 1); } #else sx = mx = m->wx; @@ -65,7 +64,7 @@ horizgrid(Monitor *m) { stotal += sw * (c->cfact / sfacts); #else mfacts = ntop; - sfacts = nbottom; + sfacts = n - ntop; for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) if (i < ntop) |
