sites

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

commit d8ae37ae44ac702003551e4e36f71574560d6bcd
parent 2f459503a4eb4a0ba021333a558ff95432d41ba6
Author: Markus Teich <markus.teich@stusta.mhn.de>
Date:   Tue,  7 Feb 2017 12:33:51 +0100

dwm/patches: simplify noborder

Diffstat:
Adwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff | 18++++++++++++++++++
Mdwm.suckless.org/patches/noborder.md | 2++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff b/dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff @@ -0,0 +1,18 @@ +diff --git a/dwm.c b/dwm.c +index d27cb67..ad6b4df 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1287,6 +1287,13 @@ resizeclient(Client *c, int x, int y, int w, int h) + c->oldw = c->w; c->w = wc.width = w; + c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; ++ if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next)) ++ || &monocle == c->mon->lt[c->mon->sellt]->arrange) ++ && !c->isfullscreen) { ++ c->w = wc.width += c->bw * 2; ++ c->h = wc.height += c->bw * 2; ++ wc.border_width = 0; ++ } + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); + configure(c); + XSync(dpy, False); diff --git a/dwm.suckless.org/patches/noborder.md b/dwm.suckless.org/patches/noborder.md @@ -9,6 +9,7 @@ Remove the border when there is only one window visible. Download -------- + * [dwm-noborder-20170207-bb3bd6f.diff](dwm-noborder-20170207-bb3bd6f.diff) * [dwm-noborder-6.1.diff](dwm-noborder-6.1.diff) * [dwm-noborder-20160718-56a31dc.diff](dwm-noborder-20160718-56a31dc.diff) @@ -17,3 +18,4 @@ Authors * Eric Pruitt - <eric.pruitt@gmail.com> * Laslo Hunhold - <dev@frign.de> (6.1, git port) + * Markus Teich - markus(DOT)teich(AT)stusta(DOT)de (simplification)