diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 19:21:09 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 19:21:09 -0500 |
commit | d692e035f473a99803ef1cc8e727b37f8c64d0f4 (patch) | |
tree | da1f663779154c36b55610f8fc11bf069ce229d8 /dwm.c | |
parent | bbd50f20f2edd41b19d2fcca498bd4cc8376ab2a (diff) |
Revert "Only implement bstackhoriz as bstack"
This reverts commit 74f81efa72bf93d9ea0b06f183f4d704dfd35543.
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -244,7 +244,6 @@ static int xerrordummy(Display *dpy, XErrorEvent *ee); static int xerrorstart(Display *dpy, XErrorEvent *ee); static void xinitvisual(); static void zoom(const Arg *arg); -static void bstack(Monitor *m); static void centeredmaster(Monitor *m); /* variables */ @@ -2515,32 +2514,3 @@ centeredmaster(Monitor *m) } } -static void -bstack(Monitor *m) { - int w, mh, mx, tx, ty, th; - unsigned int i, n; - Client *c; - - for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - if (n == 0) - return; - if (n > m->nmaster) { - mh = m->nmaster ? m->mfact * m->wh : 0; - th = (m->wh - mh) / (n - m->nmaster); - ty = m->wy + mh; - } else { - th = mh = m->wh; - ty = m->wy; - } - for (i = mx = 0, tx = m->wx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) { - if (i < m->nmaster) { - w = (m->ww - mx) / (MIN(n, m->nmaster) - i); - resize(c, m->wx + mx, m->wy, w - (2 * c->bw), mh - (2 * c->bw), 0); - mx += WIDTH(c); - } else { - resize(c, tx, ty, m->ww - (2 * c->bw), th - (2 * c->bw), 0); - if (th != m->wh) - ty += HEIGHT(c); - } - } -} |