|
- diff --git a/dwm.c b/dwm.c
- index 9fd0286..dcdbc38 100644
- --- a/dwm.c
- +++ b/dwm.c
- @@ -1277,12 +1277,24 @@ void
- resizeclient(Client *c, int x, int y, int w, int h)
- {
- XWindowChanges wc;
- + unsigned int n;
- + Client *nbc;
-
- c->oldx = c->x; c->x = wc.x = x;
- c->oldy = c->y; c->y = wc.y = y;
- c->oldw = c->w; c->w = wc.width = w;
- c->oldh = c->h; c->h = wc.height = h;
- wc.border_width = c->bw;
- +
- + for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++);
- +
- + if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) {
- + } else {
- + if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) {
- + wc.border_width = 0;
- + }
- + }
- +
- XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
- configure(c);
- XSync(dpy, False);
|