diff options
author | julian T <julian@jtle.dk> | 2019-01-28 12:44:23 +0100 |
---|---|---|
committer | julian T <julian@jtle.dk> | 2019-01-28 12:44:23 +0100 |
commit | af0b57624e38f062c2ad3df4d7dfae37c166c5f1 (patch) | |
tree | 995e00538c364959a4eaef75468c857bb6beddf9 | |
parent | e86ae2d98be5c91aa31905fdbbd3de1472c3cbc5 (diff) |
Removed bstack
-rw-r--r-- | bstack.c | 29 | ||||
-rw-r--r-- | config.h | 2 |
2 files changed, 0 insertions, 31 deletions
diff --git a/bstack.c b/bstack.c deleted file mode 100644 index ebae6fd..0000000 --- a/bstack.c +++ /dev/null @@ -1,29 +0,0 @@ -static void -bstack(Monitor *m) { - int x, y, h, w, mh; - unsigned int i, n; - Client *c; - - for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - if(n == 0) - return; - /* master */ - c = nexttiled(m->clients); - mh = m->mfact * m->wh; - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False); - if(--n == 0) - return; - /* tile stack */ - x = m->wx; - y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh; - w = m->ww / n; - h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh; - if(w < bh) - w = m->ww; - for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) { - resize(c, x, y, /* remainder */ ((i + 1 == n) - ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False); - if(w != m->ww) - x = c->x + WIDTH(c); - } -} @@ -1,6 +1,5 @@ /* See LICENSE file for copyright and license details. */ #include <X11/XF86keysym.h> -#include "bstack.c" /* appearance */ static const char *fonts[] = { @@ -74,7 +73,6 @@ static const Layout layouts[] = { { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "]Z[", zen }, - { "TTT", bstack }, }; /* key definitions */ |