commit 17dd25fdc7f2a153d076e7589b262a07379104da
parent 7dc96d41cd0b33947f4bdd83fefd593440076358
Author: Jake Koroman <jake@jakekoroman.com>
Date: Thu, 2 Oct 2025 15:38:48 -0400
patch: applied alwayscenter.
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/README b/README
@@ -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
------------
diff --git a/dwm.c b/dwm.c
@@ -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)