diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-03-12 12:55:44 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-03-12 12:55:44 -0500 |
commit | 203f90bfb2d8146b61882310017a6a4fe3f13849 (patch) | |
tree | bc3b9d01d8a0dad23006fd689ec2e03132e08d00 /dwm.c | |
parent | 3eb52c30c6f547114cba6917de5a08d1925c4d56 (diff) |
always center
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |