Make scratchpad like a quake console

This commit is contained in:
Przemek Grondek 2023-02-17 01:17:54 +01:00
parent 175f76256f
commit dd46203749

3
dwm.c
View File

@ -1269,8 +1269,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;
c->x = c->mon->wx + (c->mon->ww / 2 - WIDTH(c) / 2); resize(c, 0, 0, c->mon->mw, c->h, 0);
c->y = c->mon->wy + (c->mon->wh / 2 - HEIGHT(c) / 2);
} }
wc.border_width = c->bw; wc.border_width = c->bw;