summaryrefslogtreecommitdiffstats
path: root/6.3+h/0000-dwm-alwayscenter.patch
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-05-04 10:33:07 +0800
committerJesús <heckyel@hyperbola.info>2022-05-04 10:33:07 +0800
commit4b34604a01a175c1f7a3d5aad26b0954c9177119 (patch)
tree8e06985e56492cb59d68505c62e47ad5a165b781 /6.3+h/0000-dwm-alwayscenter.patch
downloaddwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.tar.lz
dwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.tar.xz
dwm-patches-4b34604a01a175c1f7a3d5aad26b0954c9177119.zip
initial commit
Diffstat (limited to '6.3+h/0000-dwm-alwayscenter.patch')
-rw-r--r--6.3+h/0000-dwm-alwayscenter.patch13
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)