From e45ecd8dda8329553a3ce32367cefcc023088e27 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 25 Mar 2020 09:25:14 +0900 Subject: [PATCH] bookshelf, bookstack: Take the border into account when resizing clients --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.3