summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP.P.A <adolphs@moselle.moe>2023-07-09 10:05:07 +0200
committerP.P.A <adolphs@moselle.moe>2023-07-09 10:05:07 +0200
commit585922c64ca91955094036510b60aa36a0cf342d (patch)
tree631d4ace7de142970ef875776100f22ad3e483a9
parent2d2378d16f0aa202b45398198349cb177fc54aa9 (diff)
leftstack
-rw-r--r--config.def.h2
-rw-r--r--config.h2
-rw-r--r--dwm.c6
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;
}