diff options
Diffstat (limited to '6.3+h/0000-dwm-alwayscenter.patch')
-rw-r--r-- | 6.3+h/0000-dwm-alwayscenter.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/6.3+h/0000-dwm-alwayscenter.patch b/6.3+h/0000-dwm-alwayscenter.patch new file mode 100644 index 0000000..663c290 --- /dev/null +++ b/6.3+h/0000-dwm-alwayscenter.patch @@ -0,0 +1,13 @@ +diff --git a/dwm.c b/dwm.c +index 5646a5c..58a8fd5 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1063,6 +1063,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) |