Merge branch 'alwayscenter' into new

This commit is contained in:
joelchrono12 2023-01-12 21:46:05 -06:00
commit 5c78379da3
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
1 changed files with 2 additions and 0 deletions

2
dwm.c
View File

@ -1069,6 +1069,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)