Make scratchpad like a quake console
This commit is contained in:
parent
175f76256f
commit
dd46203749
3
dwm.c
3
dwm.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user