sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit f79020fd5ed86506f175b8217e4ee559bbb85804
parent 2efc37843a6c2d93793af74bdd53c2bd33a82fb6
Author: FRIGN <dev@frign.de>
Date:   Thu, 27 Aug 2015 18:08:08 +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.

Diffstat:
Dst.suckless.org/patches/1clipboard.diff | 14--------------
Dst.suckless.org/patches/1clipboard.md | 25-------------------------
Ast.suckless.org/patches/clipboard.diff | 13+++++++++++++
Ast.suckless.org/patches/clipboard.md | 19+++++++++++++++++++
4 files changed, 32 insertions(+), 39 deletions(-)

diff --git a/st.suckless.org/patches/1clipboard.diff b/st.suckless.org/patches/1clipboard.diff @@ -1,14 +0,0 @@ -diff --git a/st.c b/st.c -index bb64c55..5ff1a36 100644 ---- a/st.c -+++ b/st.c -@@ -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 @@ -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 @@ -0,0 +1,13 @@ +diff --git a/st.c b/st.c +index 35a840b..95c5879 100644 +--- a/st.c ++++ b/st.c +@@ -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 @@ -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/)