summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAmbrose <me@librelife.org>2026-02-15 23:06:17 -0500
committerAmbrose <me@librelife.org>2026-02-15 23:06:17 -0500
commit27ba8308eed9acde225a91f854c06d7df38b7a39 (patch)
treeedff4ed703c4f4879572072cc1d979c054f590e7 /dwm.c
parent3baf6ee476773cc2cc2795e28b859f69900dde40 (diff)
Patched in alwayscenter
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 08847eb..a1b32e3 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1232,6 +1232,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)