diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-31 18:31:18 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-31 18:31:18 -0500 |
commit | 79dd5c40560a2032c357175ee557ecafd3e2b5df (patch) | |
tree | c0517bf7eb70421eb73e321f7b230d24ddcf1846 /dwm.c | |
parent | f63ffe77fa0d5ce3bac803f7b9ced70dbf87ac64 (diff) |
Migrate all layouts to vanitygaps.c
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -227,7 +227,6 @@ static void showhide(Client *c); static void sigstatusbar(const Arg *arg); static void tag(const Arg *arg); static void tagmon(const Arg *arg); -static void tilewide(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); static void toggletag(const Arg *arg); @@ -1942,34 +1941,6 @@ tagmon(const Arg *arg) } void -tilewide(Monitor *m) -{ - unsigned int i, n, w, h, mw, mx, ty; - Client *c; - - for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - if (n == 0) - return; - - if (n > m->nmaster) - mw = m->nmaster ? m->ww * m->mfact : 0; - else - mw = m->ww; - for (i = mx = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) - if (i < m->nmaster) { - w = (mw - mx) / (MIN(n, m->nmaster) - i); - resize(c, m->wx + mx, m->wy, w - (2*c->bw), (m->wh - ty) - (2*c->bw), 0); - if (mx + WIDTH(c) < m->ww) - mx += WIDTH(c); - } else { - h = (m->wh - ty) / (n - i); - resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); - if (ty + HEIGHT(c) < m->wh) - ty += HEIGHT(c); - } -} - -void togglebar(const Arg *arg) { selmon->showbar = !selmon->showbar; |