Apply patch alwaycenter

This commit is contained in:
Fabio Scotto di Santolo
2025-08-29 21:57:24 +02:00
parent e48477d43a
commit 692b703dc3
2 changed files with 14 additions and 0 deletions

View File

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