From 17dd25fdc7f2a153d076e7589b262a07379104da Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Thu, 2 Oct 2025 15:38:48 -0400 Subject: patch: applied alwayscenter. --- README | 1 + dwm.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README b/README index 3284869..4fa3275 100644 --- 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 index 0dca5fc..d232631 100644 --- 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) -- cgit v1.2.3