summaryrefslogtreecommitdiff
path: root/wm/dwm-6.4/patches/dwm-gaps-6.0.diff
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-11-20 14:49:50 -0600
committerstkhan <personal@slickd.xyz>2022-11-20 14:49:50 -0600
commit692622e6ef93f852ac6420cd0e818752ee563fa6 (patch)
treebab2c8802b1d89d93727e858d63669c05c02ec4c /wm/dwm-6.4/patches/dwm-gaps-6.0.diff
parent6c98377a89f081c3300d69300b950a1cc977d23e (diff)
Remove new dwm
Diffstat (limited to 'wm/dwm-6.4/patches/dwm-gaps-6.0.diff')
-rw-r--r--wm/dwm-6.4/patches/dwm-gaps-6.0.diff53
1 files changed, 0 insertions, 53 deletions
diff --git a/wm/dwm-6.4/patches/dwm-gaps-6.0.diff b/wm/dwm-6.4/patches/dwm-gaps-6.0.diff
deleted file mode 100644
index 80e1c8d..0000000
--- a/wm/dwm-6.4/patches/dwm-gaps-6.0.diff
+++ /dev/null
@@ -1,53 +0,0 @@
-diff --git a/config.def.h b/config.def.h
-index 77ff358..a4e496b 100644
---- a/config.def.h
-+++ b/config.def.h
-@@ -9,6 +9,7 @@ static const char selbordercolor[] = "#005577";
- static const char selbgcolor[] = "#005577";
- static const char selfgcolor[] = "#eeeeee";
- static const unsigned int borderpx = 1; /* border pixel of windows */
-+static const unsigned int gappx = 1; /* gap pixel between windows */
- static const unsigned int snap = 32; /* snap pixel */
- static const Bool showbar = True; /* False means no bar */
- static const Bool topbar = True; /* False means bottom bar */
-diff --git a/dwm.c b/dwm.c
-index 1d78655..6cc96ff 100644
---- a/dwm.c
-+++ b/dwm.c
-@@ -1703,7 +1703,7 @@ textnw(const char *text, unsigned int len) {
-
- void
- tile(Monitor *m) {
-- unsigned int i, n, h, mw, my, ty;
-+ unsigned int i, n, h, r, g = 0, mw, my, ty;
- Client *c;
-
- for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-@@ -1711,19 +1711,21 @@ tile(Monitor *m) {
- return;
-
- if(n > m->nmaster)
-- mw = m->nmaster ? m->ww * m->mfact : 0;
-+ mw = m->nmaster ? (m->ww - (g = gappx)) * m->mfact : 0;
- else
- mw = m->ww;
- for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if(i < m->nmaster) {
-- h = (m->wh - my) / (MIN(n, m->nmaster) - i);
-+ r = MIN(n, m->nmaster) - i;
-+ h = (m->wh - my - gappx * (r - 1)) / r;
- resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), False);
-- my += HEIGHT(c);
-+ my += HEIGHT(c) + gappx;
- }
- else {
-- h = (m->wh - ty) / (n - i);
-- resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), False);
-- ty += HEIGHT(c);
-+ r = n - i;
-+ h = (m->wh - ty - gappx * (r - 1)) / r;
-+ resize(c, m->wx + mw + g, m->wy + ty, m->ww - mw - g - (2*c->bw), h - (2*c->bw), False);
-+ ty += HEIGHT(c) + gappx;
- }
- }
-