diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-10-02 15:38:48 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-10-02 15:38:48 -0400 |
| commit | 17dd25fdc7f2a153d076e7589b262a07379104da (patch) | |
| tree | 37750d1c8d279746ac9a0758ae6ddd75c11c87c1 /dwm.c | |
| parent | 7dc96d41cd0b33947f4bdd83fefd593440076358 (diff) | |
patch: applied alwayscenter.
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1122,6 +1122,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) |
