[wiki] [sites] 0.8.1's clipboard patch || Kai Hendry

From: <git_AT_suckless.org>
Date: Tue, 15 May 2018 09:41:56 +0200

commit 8adf413070613e84de6270c388dc9790dfe5915e
Author: Kai Hendry <hendry_AT_webconverger.com>
Date: Tue May 15 15:41:40 2018 +0800

    0.8.1's clipboard patch

diff --git a/st.suckless.org/patches/clipboard/index.md b/st.suckless.org/patches/clipboard/index.md
index dcee27af..8f0fa3b2 100644
--- a/st.suckless.org/patches/clipboard/index.md
+++ b/st.suckless.org/patches/clipboard/index.md
_AT_@ -15,6 +15,7 @@ CLIPBOARD.
 Download
 --------
 
+* [st-clipboard-0.8.1.diff](st-clipboard-0.8.1.diff)
 * [st-clipboard-0.6.diff](st-clipboard-0.6.diff)
 * [st-clipboard-0.7.diff](st-clipboard-0.7.diff)
 * [st-clipboard-20160727-308bfbf.diff](st-clipboard-20160727-308bfbf.diff)
diff --git a/st.suckless.org/patches/clipboard/st-clipboard-0.8.1.diff b/st.suckless.org/patches/clipboard/st-clipboard-0.8.1.diff
new file mode 100644
index 00000000..604c480a
--- /dev/null
+++ b/st.suckless.org/patches/clipboard/st-clipboard-0.8.1.diff
_AT_@ -0,0 +1,13 @@
+diff --git a/x.c b/x.c
+index c343ba2..f2a4f65 100644
+--- a/x.c
++++ b/x.c
+_AT_@ -627,6 +627,8 @@ setsel(char *str, Time t)
+ XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
+ if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
+ selclear();
++
++ clipcopy(NULL);
+ }
+
+ void
Received on Tue May 15 2018 - 09:41:56 CEST

This archive was generated by hypermail 2.3.0 : Tue May 15 2018 - 09:48:22 CEST