Working on dwm README.

This commit is contained in:
Derek Taylor
2020-03-11 19:24:20 -05:00
parent b08c3d33c0
commit 68a6aaca26
3 changed files with 15 additions and 30 deletions

View File

@@ -1397,15 +1397,8 @@ resizeclient(Client *c, int x, int y, int w, int h)
if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) {
gapincr = gapoffset = 0;
} else {
/* Remove border and gap if layout is monocle or only one client */
if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) {
gapoffset = 0;
gapincr = -2 * borderpx;
wc.border_width = 0;
} else {
gapoffset = gappx;
gapincr = 2 * gappx;
}
}
c->oldx = c->x; c->x = wc.x = x + gapoffset;