summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorJackson Taylor <jtaylormuffins@gmail.com>2020-06-30 23:58:33 +0000
committerJackson Taylor <jtaylor@classicalconversations.com>2022-02-07 10:19:29 -0500
commite77420541ab3dac3d494d293fbc975379474b20b (patch)
tree7be38df52d92c88522362f08efa12a0975c61226 /patches
parent3c0497b6be06211932e50bf435baa05a19342bf5 (diff)
Add always centered patch
Diffstat (limited to 'patches')
-rw-r--r--patches/dwm-alwayscenter-20200625-f04cac6.diff12
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 00000000..03ea9ef2
--- /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)