diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-07-31 18:28:46 +0100 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-07-31 18:28:46 +0100 |
| commit | 71527a7455d62b891990cffdf2d9c12ab9b5d7e5 (patch) | |
| tree | 8eb975afa69e8013111687d687af5ddcdfde9c9b /dwm.c | |
| parent | 387d8153dcbff439c1f86e6b3fe3540450f39bcb (diff) | |
re-add hidden border and increase window snap size
Diffstat (limited to 'dwm.c')
| -rwxr-xr-x | dwm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |
