Browse Source

noborder patch

master
Ivan Polyakov 4 months ago
parent
commit
27db07fa82
  1. 1
      README.md
  2. 7
      dwm.c

1
README.md

@ -5,3 +5,4 @@ Vilor's dwm based on [dwm 6.5](README.dwm.md) @@ -5,3 +5,4 @@ Vilor's dwm based on [dwm 6.5](README.dwm.md)
Used patches
------------
* systray
* noborder

7
dwm.c

@ -1450,6 +1450,13 @@ resizeclient(Client *c, int x, int y, int w, int h) @@ -1450,6 +1450,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);

Loading…
Cancel
Save