applied alwayscenter

This commit is contained in:
joelchrono12 2023-01-12 20:27:06 -06:00
parent ed9dce4ee8
commit 3ed493821d
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
1 changed files with 2 additions and 0 deletions

2
dwm.c
View File

@ -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)