[wiki] [sites] added singularborders patch || Unia
commit 99e36d3acf4ea0380f858de3ba3830190e26c405
Author: Unia <jthidskes_AT_live.nl>
Date: Wed Mar 13 14:29:06 2013 +0100
added singularborders patch
diff --git a/dwm.suckless.org/patches/dwm-6.0-singularborders.diff b/dwm.suckless.org/patches/dwm-6.0-singularborders.diff
new file mode 100644
index 0000000..9a2a617
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-6.0-singularborders.diff
_AT_@ -0,0 +1,37 @@
+--- dwm.c.orig 2013-03-13 14:25:25.094526242 +0100
++++ dwm.c 2013-03-13 14:25:13.681193099 +0100
+_AT_@ -856,6 +856,7 @@
+ attachstack(c);
+ grabbuttons(c, True);
+ XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
++ XRaiseWindow(dpy, c->win);
+ setfocus(c);
+ }
+ else
+_AT_@ -1200,7 +1201,7 @@
+ 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, False);
++ resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
+ }
+
+ void
+_AT_@ -1717,13 +1718,13 @@
+ 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), False);
+- my += HEIGHT(c);
++ 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), False);
+- 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;
+ }
+ }
+
diff --git a/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff b/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff
new file mode 100644
index 0000000..3c1b4cf
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff
_AT_@ -0,0 +1,55 @@
+--- dwm.c.orig 2013-03-13 14:24:49.507860173 +0100
++++ dwm.c 2013-03-13 14:24:18.417860695 +0100
+_AT_@ -440,13 +440,13 @@
+ for(i = mx = tx = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
+ if(i < m->nmasters[m->curtag]) {
+ w = (m->ww - mx) / (MIN(n, m->nmasters[m->curtag]) - i);
+- resize(c, m->wx + mx, m->wy, w - (2*c->bw), mh - (2*c->bw), False);
+- mx += WIDTH(c);
++ resize(c, m->wx + mx - c->bw, m->wy, w, mh - c->bw, False);
++ mx += WIDTH(c) - c->bw;
+ }
+ else {
+ w = (m->ww - tx) / (n - i);
+- resize(c, m->wx + tx, m->wy + mh, w - (2*c->bw), m->wh - mh - (2*c->bw), False);
+- tx += WIDTH(c);
++ resize(c, m->wx + tx - c->bw, m->wy + mh, w, m->wh - mh - c->bw, False);
++ tx += WIDTH(c) - c->bw;
+ }
+ }
+
+_AT_@ -883,6 +883,7 @@
+ attachstack(c);
+ grabbuttons(c, True);
+ XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
++ XRaiseWindow(dpy, c->win);
+ setfocus(c);
+ }
+ else
+_AT_@ -1227,7 +1228,7 @@
+ 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, False);
++ resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
+ }
+
+ void
+_AT_@ -1744,13 +1745,13 @@
+ 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), False);
+- my += HEIGHT(c);
++ 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), False);
+- 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;
+ }
+ }
+
diff --git a/dwm.suckless.org/patches/singularborders.md b/dwm.suckless.org/patches/singularborders.md
new file mode 100644
index 0000000..9eb69a7
--- /dev/null
+++ b/dwm.suckless.org/patches/singularborders.md
_AT_@ -0,0 +1,43 @@
+\singular borders
+===========
+
+Description
+-----------
+`singular borders` changes the way DWM handles the borders. Firsty, borders against the left, bottom and right screen edges are removed (they are placed off-screen) and secondly, borders between clients now overlap eachother.
+
+
+ Original behaviour :
+ +-----------------+--------+
+ | || |
+ | || S1 |
+ | || |
+ | M |+=======|
+ | || |
+ | || S2 |
+ | || |
+ +-----------------+--------+
+
+
+ New Behaviour :
+ +-----------------+--------+
+ |
+ | S1
+ |
+ M +--------+
+ |
+ | S2
+ |
+ + + +
+
+Issues
+------
+In a multi-monitor setup, you will see monitor one's borders on monitor two and vice-versa. This is because the border on screen edges are simply placed off-screen.
+
+Download
+--------
+* [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>`
Received on Wed Mar 13 2013 - 14:28:54 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 13 2013 - 14:36:10 CET