[wiki] [sites] added a patch that centers all floating clients || toniz4

From: <git_AT_suckless.org>
Date: Thu, 25 Jun 2020 05:49:10 +0200

commit 9ecada966beecb0c774092f1bd7b1df3825d550b
Author: toniz4 <cassioavila000_AT_gmail.com>
Date: Thu Jun 25 00:48:49 2020 -0300

    added a patch that centers all floating clients

diff --git a/dwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff b/dwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff
new file mode 100644
index 00000000..03ea9ef2
--- /dev/null
+++ b/dwm.suckless.org/patches/awayscenter/dwm-awayscenter-20200625-f04cac6.diff
_AT_@ -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
+_AT_@ -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)
diff --git a/dwm.suckless.org/patches/awayscenter/index.md b/dwm.suckless.org/patches/awayscenter/index.md
new file mode 100644
index 00000000..b509969d
--- /dev/null
+++ b/dwm.suckless.org/patches/awayscenter/index.md
_AT_@ -0,0 +1,17 @@
+awayscenter
+===========
+
+Description
+-----------
+All floating windows are centered, like the center patch, but
+without a rule.
+
+Download
+--------
+* [dwm-awayscenter-20200625-f04cac6.diff](dwm-awayscenter-20200625-f04cac6.diff)
+
+Authors
+-------
+* Cássio Ávila - <cassioavila_AT_yandex.com>
+* Chris Down - <chris_AT_chrisdown.name> (original center patch)
+* Laslo Hunhold - <dev_AT_frign.de> (original center patch git port)
Received on Thu Jun 25 2020 - 05:49:10 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 25 2020 - 06:00:47 CEST