mirror of
https://codeberg.org/frosty/dwm.git
synced 2024-09-19 11:46:53 -04:00
patch: alwayscenter
This commit is contained in:
parent
4a953773f2
commit
06d3b77b37
2
dwm.c
2
dwm.c
|
@ -1107,6 +1107,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)
|
||||
|
|
Loading…
Reference in a new issue