From a04c3fa53982ab3c341817a37e1410900a858a48 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Mon, 18 Jul 2022 11:02:29 +0300 Subject: remove centeredfloatingmaster layout --- vanitygaps.c | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) (limited to 'vanitygaps.c') diff --git a/vanitygaps.c b/vanitygaps.c index ff068df..7a36b9d 100644 --- a/vanitygaps.c +++ b/vanitygaps.c @@ -3,7 +3,6 @@ static void togglegaps(const Arg *arg); /* Layouts */ static void bstack(Monitor *m); static void centeredmaster(Monitor *m); -static void centeredfloatingmaster(Monitor *m); static void deck(Monitor *m); static void dwindle(Monitor *m); static void fibonacci(Monitor *m, int s); @@ -214,59 +213,6 @@ centeredmaster(Monitor *m) } } -void -centeredfloatingmaster(Monitor *m) -{ - unsigned int i, n; - float mfacts, sfacts; - float mivf = 1.0; // master inner vertical gap factor - int oh, ov, ih, iv, mrest, srest; - int mx = 0, my = 0, mh = 0, mw = 0; - int sx = 0, sy = 0, sh = 0, sw = 0; - Client *c; - - getgaps(m, &oh, &ov, &ih, &iv, &n); - if (n == 0) - return; - - sx = mx = m->wx + ov; - sy = my = m->wy + oh; - sh = mh = m->wh - 2*oh; - mw = m->ww - 2*ov - iv*(n - 1); - sw = m->ww - 2*ov - iv*(n - m->nmaster - 1); - - if (m->nmaster && n > m->nmaster) { - mivf = 0.8; - /* go mfact box in the center if more than nmaster clients */ - if (m->ww > m->wh) { - mw = m->ww * m->mfact - iv*mivf*(MIN(n, m->nmaster) - 1); - mh = m->wh * 0.9; - } else { - mw = m->ww * 0.9 - iv*mivf*(MIN(n, m->nmaster) - 1); - mh = m->wh * m->mfact; - } - mx = m->wx + (m->ww - mw) / 2; - my = m->wy + (m->wh - mh - 2*oh) / 2; - - sx = m->wx + ov; - sy = m->wy + oh; - sh = m->wh - 2*oh; - } - - getfacts(m, mw, sw, &mfacts, &sfacts, &mrest, &srest); - - for (i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) - if (i < m->nmaster) { - /* nmaster clients are stacked horizontally, in the center of the screen */ - resize(c, mx, my, (mw / mfacts) + (i < mrest ? 1 : 0) - (2*c->bw), mh - (2*c->bw), 0); - mx += WIDTH(c) + iv*mivf; - } else { - /* stack clients are stacked horizontally */ - resize(c, sx, sy, (sw / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0); - sx += WIDTH(c) + iv; - } -} - /* * Deck layout + gaps * https://dwm.suckless.org/patches/deck/ -- cgit v1.2.3