diff options
| author | Naz <ndpm13@ch-naseem.com> | 2026-01-20 12:51:31 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2026-01-20 12:51:31 +0100 |
| commit | 1a3c5252bea230d951caee346795f296af72bc3f (patch) | |
| tree | 72e710a5a3352734181f3480ed074169e9a54719 /dwm.c | |
| parent | 05ea4954f98509e10ffe200a7750bb0893fbc1af (diff) | |
feat(patch): apply dwm-alwayscenter-20200625-f04cac6
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1184,6 +1184,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) |
