From: Matthias Kruk Date: Wed, 25 Mar 2020 00:25:14 +0000 (+0900) Subject: bookshelf, bookstack: Take the border into account when resizing clients X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=e45ecd8dda8329553a3ce32367cefcc023088e27;p=dwm bookshelf, bookstack: Take the border into account when resizing clients --- diff --git a/dwm.c b/dwm.c index 30d7701..a250fc1 100755 --- a/dwm.c +++ b/dwm.c @@ -1946,7 +1946,7 @@ static void bookshelf(Monitor *m) /* assign positions and sizes to all clients on this screen */ for(c = nexttiled(m->clients); c; c = nexttiled(c->next)) { - resize(c, x, m->wy, w, m->wh, False); + resize(c, x, m->wy, w - 2 * c->bw, m->wh - 2 * c->bw, False); /* * Since all clients are horizontally aligned and the @@ -1979,7 +1979,7 @@ static void bookstack(Monitor *m) y = m->wy; for(c = nexttiled(m->clients); c; c = nexttiled(c->next)) { - resize(c, m->wx, y, m->ww, h, False); + resize(c, m->wx, y, m->ww - 2 * c->bw, h - 2 * c->bw, False); y += HEIGHT(c); }