From 71527a7455d62b891990cffdf2d9c12ab9b5d7e5 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Thu, 31 Jul 2025 18:28:46 +0100 Subject: re-add hidden border and increase window snap size --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 31da669..c0efdfa 100755 --- a/dwm.c +++ b/dwm.c @@ -1258,6 +1258,14 @@ 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->isfloating + && NULL != c->mon->lt[c->mon->sellt]->arrange) { + 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); -- cgit v1.2.3