sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 2c9a1ed3f7deb970a348cd2c54b64ae3815c5fea
parent a404556a1a7dedb446a8521a66398e2228079946
Author: Max Amundsen <massimo@cdrateline.com>
Date:   Mon, 11 May 2020 10:44:53 -0400

Added 'removeborder' patch to dwm
	new file:   patches/removeborder/dwm-removeborder-20200520-f09418b.diff
	new file:   patches/removeborder/index.md

Diffstat:
Adwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff | 29+++++++++++++++++++++++++++++
Adwm.suckless.org/patches/removeborder/index.md | 14++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff b/dwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff @@ -0,0 +1,29 @@ +diff --git a/dwm.c b/dwm.c +index 9fd0286..dcdbc38 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1277,12 +1277,24 @@ void + resizeclient(Client *c, int x, int y, int w, int h) + { + XWindowChanges wc; ++ unsigned int n; ++ Client *nbc; + + c->oldx = c->x; c->x = wc.x = x; + c->oldy = c->y; c->y = wc.y = y; + c->oldw = c->w; c->w = wc.width = w; + c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; ++ ++ for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++); ++ ++ if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { ++ } else { ++ if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) { ++ 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/removeborder/index.md b/dwm.suckless.org/patches/removeborder/index.md @@ -0,0 +1,14 @@ +removeborder +============ + +Description +----------- +Remove the border when there is only one window visible. Simpler reimplimentation of [noborder](../noborder/). Heavily inspired by [uselessgap](../uselessgap/). As this patch basically adds the borderless functionality of uselessgaps, there is no point in using both patches. + +Download +-------- +* [dwm-removeborder-20200520-f09418b.diff](dwm-removeborder-20200520-f09418b.diff) + +Author +------- +* Max Amundsen - <massimo@cdrateline.com>