diff options
| author | Mouad Alami <moadalami40@gmail.com> | 2023-04-24 17:01:04 +0100 |
|---|---|---|
| committer | Mouad Alami <moadalami40@gmail.com> | 2023-04-24 17:01:04 +0100 |
| commit | 12504786ab28980224d5089e9c74b075234ff022 (patch) | |
| tree | 1729d0bf26b6796034ac93311313a5227326bc3b /dwm.c | |
| parent | 86a253ef76a977f8b829de2853d9208334e33f68 (diff) | |
noborder patch
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1298,6 +1298,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); XSync(dpy, False); |
