diff --git a/_unused/suckless/dwm/README.md b/_unused/suckless/dwm/README.md index d22706b..f039724 100644 --- a/_unused/suckless/dwm/README.md +++ b/_unused/suckless/dwm/README.md @@ -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. diff --git a/_unused/suckless/dwm/dwm.c b/_unused/suckless/dwm/dwm.c index f2d7bc2..dbf60c0 100644 --- a/_unused/suckless/dwm/dwm.c +++ b/_unused/suckless/dwm/dwm.c @@ -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;