From 2ff154d1a3a8442770552a5f592169a46a82707c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 29 Jul 2023 10:20:20 +0200 Subject: [PATCH] Fix borders for scratchpad --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index 12add47..5ec9d06 100644 --- a/dwm.c +++ b/dwm.c @@ -1287,7 +1287,7 @@ manage(Window w, XWindowAttributes *wa) if (!strcmp(c->name, scratchpadname)) { c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag; c->isfloating = True; - resize(c, 0, 0, c->mon->mw, c->h, 0); + resize(c, 0, 0, c->mon->mw - borderpx * 2, c->h - borderpx * 2, 0); } wc.border_width = c->bw;