always center

This commit is contained in:
Luke Smith 2021-03-12 12:55:44 -05:00
parent 3eb52c30c6
commit 203f90bfb2
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

2
dwm.c
View file

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