diff options
| author | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-11-24 03:23:59 -0800 |
|---|---|---|
| committer | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-11-24 03:23:59 -0800 |
| commit | ad7c5938d25936c1e7ddcb8b46ec57039bd5cf0a (patch) | |
| tree | 7c12c7ad8226f9963e10d3f9ed99d4ee7c3a56e3 | |
| parent | Window focus now only switches on click (diff) | |
Always center floating windows
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1208,6 +1208,8 @@ manage(Window w, XWindowAttributes *wa) updatesizehints(c); updatewmhints(c); updatemotifhints(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) |