From 585922c64ca91955094036510b60aa36a0cf342d Mon Sep 17 00:00:00 2001 From: "P.P.A" Date: Sun, 9 Jul 2023 10:05:07 +0200 Subject: leftstack --- config.def.h | 2 +- config.h | 2 +- dwm.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 3f2f1c6..99a5859 100644 --- a/config.def.h +++ b/config.def.h @@ -50,7 +50,7 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ + { "=[]", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; diff --git a/config.h b/config.h index 3f2f1c6..99a5859 100644 --- a/config.h +++ b/config.h @@ -50,7 +50,7 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ + { "=[]", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; diff --git a/dwm.c b/dwm.c index 4d996ac..c73b283 100644 --- a/dwm.c +++ b/dwm.c @@ -2148,14 +2148,14 @@ tile(Monitor *m) else mw = m->ww - m->gappx; for (i = 0, my = ty = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) - if (i < m->nmaster) { + if (i < m->nmaster) { h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx; - resize(c, m->wx + m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0); + resize(c, m->wx + m->gappx + m->ww - mw - m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0); if (my + HEIGHT(c) + m->gappx < m->wh) my += HEIGHT(c) + m->gappx; } else { h = (m->wh - ty) / (n - i) - m->gappx; - resize(c, m->wx + mw + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - 2*m->gappx, h - (2*c->bw), 0); + resize(c, m->wx + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - 2*m->gappx, h - (2*c->bw), 0); if (ty + HEIGHT(c) + m->gappx < m->wh) ty += HEIGHT(c) + m->gappx; } -- cgit v1.2.3