sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 99e36d3acf4ea0380f858de3ba3830190e26c405
parent f95ea95632779100bfd9b0f124920e9179847d0f
Author: Unia <jthidskes@live.nl>
Date:   Wed, 13 Mar 2013 14:29:06 +0100

added singularborders patch

Diffstat:
Adwm.suckless.org/patches/dwm-6.0-singularborders.diff | 37+++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/dwm-6.0-singularborders_bstack.diff | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/singularborders.md | 43+++++++++++++++++++++++++++++++++++++++++++
3 files changed, 135 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.0-singularborders.diff b/dwm.suckless.org/patches/dwm-6.0-singularborders.diff @@ -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 +@@ -856,6 +856,7 @@ + attachstack(c); + grabbuttons(c, True); + XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); ++ XRaiseWindow(dpy, c->win); + setfocus(c); + } + else +@@ -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 +@@ -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 @@ -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 +@@ -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; + } + } + +@@ -883,6 +883,7 @@ + attachstack(c); + grabbuttons(c, True); + XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); ++ XRaiseWindow(dpy, c->win); + setfocus(c); + } + else +@@ -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 +@@ -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 @@ -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>`