diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-10-02 15:38:48 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-10-02 15:38:48 -0400 |
| commit | 17dd25fdc7f2a153d076e7589b262a07379104da (patch) | |
| tree | 37750d1c8d279746ac9a0758ae6ddd75c11c87c1 | |
| parent | 7dc96d41cd0b33947f4bdd83fefd593440076358 (diff) | |
patch: applied alwayscenter.
| -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) |
