diff options
| -rw-r--r-- | README | 1 | ||||
| -rw-r--r-- | dwm.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,7 @@ pertag - https://dwm.suckless.org/patches/pertag/dwm-pertag-20200914-61bb8 vanitygaps - https://dwm.suckless.org/patches/vanitygaps/dwm-cfacts-vanitygaps-6.4_combo.diff movestack - https://dwm.suckless.org/patches/movestack/dwm-movestack-20211115-a786211.diff cyclelayouts - https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayouts-20180524-6.2.diff +alwayscenter - https://dwm.suckless.org/patches/alwayscenter/dwm-alwayscenter-20200625-f04cac6.diff Requirements ------------ @@ -1122,6 +1122,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; XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); grabbuttons(c, 0); if (!c->isfloating) |
