]> git.corax.cc Git - dwm/commitdiff
bookshelf, bookstack: Take the border into account when resizing clients
authorMatthias Kruk <m@m10k.eu>
Wed, 25 Mar 2020 00:25:14 +0000 (09:25 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 25 Mar 2020 00:25:14 +0000 (09:25 +0900)
dwm.c

diff --git a/dwm.c b/dwm.c
index 30d77013e3b9f35109f91b6b61fb6063b62a7205..a250fc17d5b6fbc5105d3e4bedb21f149a947086 100755 (executable)
--- 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);
         }