dwm-alwayscenter-20200625-f04cac6.diff - sites - public wiki contents of suckle… | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
dwm-alwayscenter-20200625-f04cac6.diff (504B) | |
--- | |
1 diff -up dwm/dwm.c dwmmod/dwm.c | |
2 --- dwm/dwm.c 2020-06-25 00:21:30.383692180 -0300 | |
3 +++ dwmmod/dwm.c 2020-06-25 00:20:35.643692330 -0300 | |
4 @@ -1057,6 +1057,8 @@ manage(Window w, XWindowAttributes *wa) | |
5 updatewindowtype(c); | |
6 updatesizehints(c); | |
7 updatewmhints(c); | |
8 + c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2; | |
9 + c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2; | |
10 XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyCh… | |
11 grabbuttons(c, 0); | |
12 if (!c->isfloating) |