diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 15:39:33 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 15:39:33 +0530 |
commit | f98982eca6d534d6bced1da10149750291cdd98b (patch) | |
tree | 3ff33b9f2652a670880e4669a1f6134362ee494d /gaplessgrid.c | |
parent | 0d4564c840a06dfc1c913e8a5d09b487d84619eb (diff) | |
download | dwm-f98982eca6d534d6bced1da10149750291cdd98b.tar.gz dwm-f98982eca6d534d6bced1da10149750291cdd98b.tar.bz2 dwm-f98982eca6d534d6bced1da10149750291cdd98b.zip |
Revert (pretty crappy) gap version of gapless-grid
Diffstat (limited to 'gaplessgrid.c')
-rw-r--r-- | gaplessgrid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gaplessgrid.c b/gaplessgrid.c index 5b9de89..09d9ac8 100644 --- a/gaplessgrid.c +++ b/gaplessgrid.c @@ -22,10 +22,10 @@ gaplessgrid(Monitor *m) { for(i = 0, c = nexttiled(m->clients); c; i++, c = nexttiled(c->next)) { if(i/rows + 1 > cols - n%cols) rows = n/cols + 1; - ch = (rows ? m->wh / rows : m->wh) - m->gappx; - cx = (m->wx + cn*cw) + m->gappx; - cy = (m->wy + rn*ch) + m->gappx; - resize(c, cx + m->gappx, cy, cw - 2 * c->bw - m->gappx, ch - 2 * c->bw, False); + ch = (rows ? m->wh / rows : m->wh); + cx = (m->wx + cn*cw); + cy = (m->wy + rn*ch); + resize(c, cx, cy, cw - 2 * c->bw, ch - 2 * c->bw, False); rn++; if(rn >= rows) { rn = 0; |