From 69bcd6cd7920c39a973d8f9ef22e81be74d22a31 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 15 Oct 2025 15:55:12 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20apply=20dwm-alwayscenter-20200625-f04c?= =?UTF-8?q?ac6=20patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dwm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 04a065b..6c38cc9 100644 --- a/dwm.c +++ b/dwm.c @@ -1183,6 +1183,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