tSt now does only set PRIMARY on selection. - st - [fork] customized build of st, the simple terminal
(HTM) git clone git://src.adamsgaard.dk/st
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 28259f5750f0dc7f52bbaf8b746ec3dc576a58ee
(DIR) parent 9494362d0b35dfe2fa22c3e36ed7b2043b2e8a3d
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 10 Mar 2015 21:58:32 +0100
St now does only set PRIMARY on selection.
http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt
Diffstat:
M st.c | 7 -------
1 file changed, 0 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/st.c b/st.c
t@@ -1079,16 +1079,9 @@ selrequest(XEvent *e) {
void
xsetsel(char *str) {
- /* register the selection for both the clipboard and the primary */
- Atom clipboard;
-
free(sel.clip);
sel.clip = str;
-
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime);
-
- clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0);
- XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime);
}
void