dwm's patch - alwayscenter.

This commit is contained in:
Bartek Stalewski 2022-08-18 14:09:41 +02:00
parent 473c189366
commit 446b408093
2 changed files with 3 additions and 0 deletions

View file

@ -1391,6 +1391,8 @@ manage(Window w, XWindowAttributes *wa)
updatewindowtype(c);
updatesizehints(c);
updatewmhints(c);
c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2;
c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2;
{
int format;
unsigned long *data, n, extra;