[wiki] [sites] include "patch" || Kai Hendry

From: <git_AT_suckless.org>
Date: Fri, 03 Jul 2015 12:36:56 +0200

commit 3a27a021c25f562668795f2d27e66a1d68b6fd7d
Author: Kai Hendry <hendry_AT_webconverger.com>
Date: Fri Jul 3 18:36:42 2015 +0800

    include "patch"

diff --git a/st.suckless.org/patches/1clipboard.diff b/st.suckless.org/patches/1clipboard.diff
new file mode 100644
index 0000000..e375754
--- /dev/null
+++ b/st.suckless.org/patches/1clipboard.diff
_AT_@ -0,0 +1,14 @@
+diff --git a/st.c b/st.c
+index bb64c55..5ff1a36 100644
+--- a/st.c
++++ b/st.c
+_AT_@ -1155,6 +1155,9 @@ xsetsel(char *str, Time t) {
+ XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
+ if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
+ selclear(0);
++
++ clipcopy(NULL);
++
+ }
+
+ void
diff --git a/st.suckless.org/patches/1clipboard.md b/st.suckless.org/patches/1clipboard.md
new file mode 100644
index 0000000..be2807a
--- /dev/null
+++ b/st.suckless.org/patches/1clipboard.md
_AT_@ -0,0 +1,25 @@
+# One clipboard
+
+## Description
+
+<abbr title="simple terminal">st</abbr> since [March 2015 only sets PRIMARY on
+selection](http://git.suckless.org/st/commit/?id=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee),
+in accordance to the [Freedesktop
+standard](http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt).
+
+However I don't like this <abbr title="User eXperience">UX</abbr>. I don't like
+having to think about two clipboards. I don't like having to use typically
+three key combination to copy my selected text into the clipboard used by my
+browser.
+
+## Download
+
+* [1clipboard.diff]
+
+or
+
+Append `clipcopy(NULL);` to the end of the xsetsel function in [st.c](http://git.suckless.org/st/tree/st.c).
+
+## Author
+
+[Kai Hendry](http://hendry.iki.fi/)
diff --git a/st.suckless.org/patches/1clipboard.mdwn b/st.suckless.org/patches/1clipboard.mdwn
deleted file mode 100644
index a53a853..0000000
--- a/st.suckless.org/patches/1clipboard.mdwn
+++ /dev/null
_AT_@ -1,21 +0,0 @@
-# One clipboard
-
-## Description
-
-<abbr title="simple terminal">st</abbr> since [March 2015 only sets PRIMARY on
-selection](http://git.suckless.org/st/commit/?id=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee),
-in accordance to the [Freedesktop
-standard](http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt).
-
-However I don't like this <abbr title="User eXperience">UX</abbr>. I don't like
-having to think about two clipboards. I don't like having to use typically
-three key combination to copy my selected text into the clipboard used by my
-browser.
-
-## Fix
-
-Append `clipcopy(NULL);` to the end of the xsetsel function in [st.c](http://git.suckless.org/st/tree/st.c).
-
-## Author
-
-[Kai Hendry](http://hendry.iki.fi/)
Received on Fri Jul 03 2015 - 12:36:56 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 03 2015 - 12:48:10 CEST