summaryrefslogtreecommitdiff
path: root/vanitygaps.c
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-27 04:16:21 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-27 04:16:21 -0500
commitf63ffe77fa0d5ce3bac803f7b9ced70dbf87ac64 (patch)
tree7963e5128973000ba3b8897c589af7165fdfce98 /vanitygaps.c
parent42bd492fc999521411b5c7391879973b8b2026f4 (diff)
Remove unused layout from vanitygaps
Diffstat (limited to 'vanitygaps.c')
-rw-r--r--vanitygaps.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/vanitygaps.c b/vanitygaps.c
index dbdd925..37867eb 100644
--- a/vanitygaps.c
+++ b/vanitygaps.c
@@ -369,71 +369,6 @@ gaplessgrid(Monitor *m)
}
/*
- * Horizontal grid layout + gaps
- * https://dwm.suckless.org/patches/horizgrid/
- */
-void
-horizgrid(Monitor *m) {
- Client *c;
- unsigned int n, i;
- int oh, ov, ih, iv;
- int mx = 0, my = 0, mh = 0, mw = 0;
- int sx = 0, sy = 0, sh = 0, sw = 0;
- int ntop, nbottom = 1;
- float mfacts = 0, sfacts = 0;
- int mrest, srest, mtotal = 0, stotal = 0;
-
- /* Count windows */
- getgaps(m, &oh, &ov, &ih, &iv, &n);
- if (n == 0)
- return;
-
- if (n <= 2)
- ntop = n;
- else {
- ntop = n / 2;
- nbottom = n - ntop;
- }
- sx = mx = m->wx + ov;
- sy = my = m->wy + oh;
- sh = mh = m->wh - 2*oh;
- sw = mw = m->ww - 2*ov;
-
- if (n > ntop) {
- sh = (mh - ih) / 2;
- mh = mh - ih - sh;
- sy = my + mh + ih;
- mw = m->ww - 2*ov - iv * (ntop - 1);
- sw = m->ww - 2*ov - iv * (nbottom - 1);
- }
-
- /* calculate facts */
- for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if (i < ntop)
- mfacts += c->cfact;
- else
- sfacts += c->cfact;
-
- for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if (i < ntop)
- mtotal += mh * (c->cfact / mfacts);
- else
- stotal += sw * (c->cfact / sfacts);
-
- mrest = mh - mtotal;
- srest = sw - stotal;
-
- for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if (i < ntop) {
- resize(c, mx, my, mw * (c->cfact / mfacts) + (i < mrest ? 1 : 0) - (2*c->bw), mh - (2*c->bw), 0);
- mx += WIDTH(c) + iv;
- } else {
- resize(c, sx, sy, sw * (c->cfact / sfacts) + ((i - ntop) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
- sx += WIDTH(c) + iv;
- }
-}
-
-/*
* Default tile layout + gaps
*/
static void