Fix borders for scratchpad

This commit is contained in:
Przemek Grondek 2023-07-29 10:20:20 +02:00
parent ca3cf62435
commit 2ff154d1a3

2
dwm.c
View File

@ -1287,7 +1287,7 @@ manage(Window w, XWindowAttributes *wa)
if (!strcmp(c->name, scratchpadname)) { if (!strcmp(c->name, scratchpadname)) {
c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag; c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag;
c->isfloating = True; 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; wc.border_width = c->bw;