commit 188b76580cc24745b2f3f03a1e674a090f9dee27
parent 25a8b214e0cbfde35699b3cf9fa566aadc423ea6
Author: fjbalon <fjbalon@templier.es>
Date: Sun, 21 Jun 2026 14:36:03 +0200
Elimina el borde cuando sólo haya una ventana visible
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -1294,6 +1294,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);