1
0
Fork 0

Add alwayscenter patch

This commit is contained in:
MGislv 2021-11-05 15:19:44 +01:00
parent f42535bc93
commit 1b3540e796
1 changed files with 2 additions and 0 deletions

2
dwm.c
View File

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