summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-31 18:28:46 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-31 18:28:46 +0100
commit71527a7455d62b891990cffdf2d9c12ab9b5d7e5 (patch)
tree8eb975afa69e8013111687d687af5ddcdfde9c9b /dwm.c
parent387d8153dcbff439c1f86e6b3fe3540450f39bcb (diff)
re-add hidden border and increase window snap size
Diffstat (limited to 'dwm.c')
-rwxr-xr-xdwm.c8
1 files changed, 8 insertions, 0 deletions
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);