From 36447ef1675c4fc0f295247f33ec7a696bed7597 Mon Sep 17 00:00:00 2001 From: Justin Gassner Date: Sat, 7 Oct 2017 18:01:07 +0200 Subject: applied suckless.org noborder patch remove the border when there is only one window visible --- dwm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dwm.c b/dwm.c index f1d86b2..5bdb935 100644 --- a/dwm.c +++ b/dwm.c @@ -1292,6 +1292,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); -- cgit v1.2.3-54-g00ecf