[wiki] [sites] [dwm][patches][singularborders] port to 6.2 || aleks

From: <git_AT_suckless.org>
Date: Sun, 30 Aug 2020 17:07:39 +0200

commit b386e8be430c23f5697f84987dd754b4bc8b66a0
Author: aleks <aleks.stier_AT_icloud.com>
Date: Sun Aug 30 17:07:06 2020 +0200

    [dwm][patches][singularborders] port to 6.2

diff --git a/dwm.suckless.org/patches/singularborders/dwm-singularborders-6.2.diff b/dwm.suckless.org/patches/singularborders/dwm-singularborders-6.2.diff
new file mode 100644
index 00000000..e28ece54
--- /dev/null
+++ b/dwm.suckless.org/patches/singularborders/dwm-singularborders-6.2.diff
_AT_@ -0,0 +1,66 @@
+From cab59aac8aef1224639e5b46ab19444101f0e9f1 Mon Sep 17 00:00:00 2001
+From: aleks <aleks.stier_AT_icloud.com>
+Date: Sun, 30 Aug 2020 17:02:42 +0200
+Subject: [PATCH] Apply singularborders-6.2
+
+---
+ dwm.c | 20 +++++++++++++++-----
+ 1 file changed, 15 insertions(+), 5 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index 4465af1..c3cfe41 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -783,6 +783,8 @@ expose(XEvent *e)
+ void
+ focus(Client *c)
+ {
++ XWindowChanges wc;
++
+ if (!c || !ISVISIBLE(c))
+ for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
+ if (selmon->sel && selmon->sel != c)
+_AT_@ -796,6 +798,11 @@ focus(Client *c)
+ attachstack(c);
+ grabbuttons(c, 1);
+ XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel);
++ if (!c->isfloating) {
++ wc.sibling = selmon->barwin;
++ wc.stack_mode = Below;
++ XConfigureWindow(dpy, c->win, CWSibling | CWStackMode, &wc);
++ }
+ setfocus(c);
+ } else {
+ XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
+_AT_@ -1112,7 +1119,7 @@ monocle(Monitor *m)
+ if (n > 0) /* override layout symbol */
+ snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
+ for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
+- resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
++ resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
+ }
+
+ void
+_AT_@ -1687,12 +1694,15 @@ tile(Monitor *m)
+ 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);
+- resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
+- my += HEIGHT(c);
++ if (n == 1)
++ resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
++ else
++ resize(c, m->wx - c->bw, m->wy + my, mw - c->bw, h - c->bw, False);
++ my += HEIGHT(c) - c->bw;
+ } 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), 0);
+- ty += HEIGHT(c);
++ resize(c, m->wx + mw - c->bw, m->wy + ty, m->ww - mw, h - c->bw, False);
++ ty += HEIGHT(c) - c->bw;
+ }
+ }
+
+--
+2.28.0
+
diff --git a/dwm.suckless.org/patches/singularborders/index.md b/dwm.suckless.org/patches/singularborders/index.md
index 16e28549..3ee860cd 100644
--- a/dwm.suckless.org/patches/singularborders/index.md
+++ b/dwm.suckless.org/patches/singularborders/index.md
_AT_@ -3,7 +3,7 @@ singular borders
 
 Description
 -----------
-`singular borders` changes the way DWM handles the borders. Firsty, borders
+`singular borders` changes the way DWM handles the borders. Firstly, borders
 against the left, bottom and right screen edges are removed (they are placed
 off-screen) and secondly, borders between clients now overlap eachother.
 
_AT_@ -39,9 +39,11 @@ Issues
 
 Download
 --------
+* [dwm-singularborders-6.2.diff](dwm-singularborders-6.2.diff)
 * [dwm-6.0-singularborders.diff](dwm-6.0-singularborders.diff)
 * [dwm-6.0-singularborders\_bstack.diff](dwm-6.0-singularborders_bstack.diff)
 
 Author
 ------
 * Jente Hidskes - `<jthidskes at outlook dot com>`
+* Aleksandrs Stier (6.2)
Received on Sun Aug 30 2020 - 17:07:39 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 30 2020 - 17:12:43 CEST