[wiki] [sites] Overhaul clipboard st-patch wiki-page || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 27 Aug 2015 18:12:03 +0200

commit f79020fd5ed86506f175b8217e4ee559bbb85804
Author: FRIGN <dev_AT_frign.de>
Date: Thu Aug 27 18:08:08 2015 +0200

    Overhaul clipboard st-patch wiki-page
    
    1) People don't care what you think. Use neutral tone.
    2) Don't describe what to do to reproduce the patch. That's what
       the patch is for.
    3) Update patch to latest git-head and remove silly empty line.
    4) Rename 1clipboard to clipboard for obvious reasons.

diff --git a/st.suckless.org/patches/1clipboard.diff b/st.suckless.org/patches/1clipboard.diff
deleted file mode 100644
index e375754..0000000
--- a/st.suckless.org/patches/1clipboard.diff
+++ /dev/null
_AT_@ -1,14 +0,0 @@
-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
deleted file mode 100644
index d914e9b..0000000
--- a/st.suckless.org/patches/1clipboard.md
+++ /dev/null
_AT_@ -1,25 +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.
-
-## Download
-
-* [1clipboard.diff](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/clipboard.diff b/st.suckless.org/patches/clipboard.diff
new file mode 100644
index 0000000..76e9762
--- /dev/null
+++ b/st.suckless.org/patches/clipboard.diff
_AT_@ -0,0 +1,13 @@
+diff --git a/st.c b/st.c
+index 35a840b..95c5879 100644
+--- a/st.c
++++ b/st.c
+_AT_@ -1257,6 +1257,8 @@ 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/clipboard.md b/st.suckless.org/patches/clipboard.md
new file mode 100644
index 0000000..e84f0e0
--- /dev/null
+++ b/st.suckless.org/patches/clipboard.md
_AT_@ -0,0 +1,19 @@
+# One clipboard
+
+## Description
+
+st only sets PRIMARY on selection since
+[March 2015](http://git.suckless.org/st/commit/?id=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee)
+according to the
+[Freedesktop standard](http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt).
+
+This patch brings back the old behaviour, namely additionally setting
+CLIPBOARD.
+
+## Download
+
+* [clipboard.diff](clipboard.diff)
+
+## Author
+
+[Kai Hendry](http://hendry.iki.fi/)
Received on Thu Aug 27 2015 - 18:12:03 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 27 2015 - 18:12:11 CEST