summaryrefslogtreecommitdiff
path: root/patches/07.dwm-alwayscenter-20200625-f04cac6.diff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-03-09 13:47:45 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-10-07 03:38:28 +0530
commit7a3f29f7f53431e37f576548be813131ee9a09b5 (patch)
tree37ebbbbfcc83e1e347a2dedb287ad62316c33fdc /patches/07.dwm-alwayscenter-20200625-f04cac6.diff
parentaeb112325685e85c9d03d9333e68c66b20dc0f43 (diff)
Adding patches
Diffstat (limited to 'patches/07.dwm-alwayscenter-20200625-f04cac6.diff')
-rw-r--r--patches/07.dwm-alwayscenter-20200625-f04cac6.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/07.dwm-alwayscenter-20200625-f04cac6.diff b/patches/07.dwm-alwayscenter-20200625-f04cac6.diff
new file mode 100644
index 0000000..03ea9ef
--- /dev/null
+++ b/patches/07.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)