diff options
| author | Kumar Damani <kdamani@kepler.space> | 2021-02-06 23:00:44 +0000 |
|---|---|---|
| committer | Kumar Damani <kdamani@kepler.space> | 2021-02-06 23:01:28 +0000 |
| commit | ecf86044980ff60e766a52fe9815d31e9c932182 (patch) | |
| tree | 340a233bb5c6c32706d27cd309bc37c6a496b777 /patches/dwm-alwayscenter-20200625-f04cac6.diff | |
| parent | f17a94a87e8aabd5c5e4028b94accab8e0520c0e (diff) | |
updated readme
Diffstat (limited to 'patches/dwm-alwayscenter-20200625-f04cac6.diff')
| -rw-r--r-- | patches/dwm-alwayscenter-20200625-f04cac6.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/dwm-alwayscenter-20200625-f04cac6.diff b/patches/dwm-alwayscenter-20200625-f04cac6.diff new file mode 100644 index 0000000..03ea9ef --- /dev/null +++ b/patches/dwm-alwayscenter-20200625-f04cac6.diff @@ -0,0 +1,12 @@ +diff -up dwm/dwm.c dwmmod/dwm.c +--- dwm/dwm.c 2020-06-25 00:21:30.383692180 -0300 ++++ dwmmod/dwm.c 2020-06-25 00:20:35.643692330 -0300 +@@ -1057,6 +1057,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) |
