1
0
mirror of https://github.com/tiyn/dwm.git synced 2026-01-02 07:29:47 +01:00

applying noborder patch

This commit is contained in:
TiynGER
2020-03-30 14:39:39 +02:00
parent a5e428e626
commit e93e6fb5a3
6 changed files with 37 additions and 0 deletions

7
dwm.c
View File

@@ -1282,6 +1282,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->isfloating) {
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);