From c644af303e1dc157a5731a70b3ee1c1eb329b1a7 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 19 Mar 2023 21:30:02 +0100 Subject: [PATCH] Revert "Three Column Layout" This reverts commit 02dfb51d --- dwm.c | 75 ----------------------------------------------------------- 1 file changed, 75 deletions(-) diff --git a/dwm.c b/dwm.c index 276072a..a26da50 100644 --- a/dwm.c +++ b/dwm.c @@ -260,7 +260,6 @@ static Client *swallowingclient(Window w); static Monitor *systraytomon(Monitor *m); static void tag(const Arg *arg); static void tagmon(const Arg *arg); -static void tcl(Monitor * m); static Client *termforwin(const Client *c); static void tile(Monitor *m); static void togglebar(const Arg *arg); @@ -2143,80 +2142,6 @@ centeredmaster(Monitor *m) } } -void -tcl(Monitor * m) { - int x, y, h, w, mw, sw, bdw; - unsigned int i, n; - Client * c; - - for (n = 0, c = nexttiled(m->clients); c; - c = nexttiled(c->next), n++); - - if (n == 0) - return; - - c = nexttiled(m->clients); - - mw = m->mfact * m->ww; - sw = (m->ww - mw) / 2; - bdw = (2 * c->bw); - resize(c, - n < 3 ? m->wx : m->wx + sw, - m->wy, - n == 1 ? m->ww - bdw : mw - bdw, - m->wh - bdw, - False); - - if (--n == 0) - return; - - w = (m->ww - mw) / ((n > 1) + 1); - c = nexttiled(c->next); - - if (n > 1) - { - x = m->wx + ((n > 1) ? mw + sw : mw); - y = m->wy; - h = m->wh / (n / 2); - - if (h < bh) - h = m->wh; - - for (i = 0; c && i < n / 2; c = nexttiled(c->next), i++) - { - resize(c, - x, - y, - w - bdw, - (i + 1 == n / 2) ? m->wy + m->wh - y - bdw : h - bdw, - False); - - if (h != m->wh) - y = c->y + HEIGHT(c); - } - } - - x = (n + 1 / 2) == 1 ? mw : m->wx; - y = m->wy; - h = m->wh / ((n + 1) / 2); - - if (h < bh) - h = m->wh; - - for (i = 0; c; c = nexttiled(c->next), i++) - { - resize(c, - x, - y, - (i + 1 == (n + 1) / 2) ? w - bdw : w - bdw, - (i + 1 == (n + 1) / 2) ? m->wy + m->wh - y - bdw : h - bdw, - False); - - if (h != m->wh) - y = c->y + HEIGHT(c); - } -} - void togglebar(const Arg *arg) {