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

@ -13,6 +13,7 @@ These patches from suckless.org were applied from the newest versions, in order:
1. `dwm-vanitygaps-6.2.diff (version providing multiple new layouts)`
1. `dwm-swallow-20201211-61bb8b2.diff`
1. `dwm-scratchpads-20200414-728d397b.diff`
1. `dwm-alwayscenter-20200625-f04cac6.diff`
**note**: lot of manual work was involved, these won't apply easily on top of the others.

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;