From f351bdf5a9608a9fa7a73b62d49a18198de4a003 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Tue, 18 Oct 2022 10:18:33 +0300 Subject: patch: alwayscenter (included) --- dwm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index e5efb6a..02f3353 100644 --- a/dwm.c +++ b/dwm.c @@ -1059,6 +1059,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 1.4.1-2-gfad0