~petersanchez/st

47932ea163e2b4082bd5e5527c0d8b4362fb05fc — Peter Sanchez 1 year, 8 months ago b096842
Adding mouse select to clipboard copy patch
3 files changed, 14 insertions(+), 0 deletions(-)

M patches/README.md
A patches/st-clipboard-0.8.3.diff
M x.c
M patches/README.md => patches/README.md +1 -0
@@ 2,3 2,4 @@

1. http://st.suckless.org/patches/copyurl/st-copyurl-20190202-0.8.1.diff
1. http://st.suckless.org/patches/alpha/st-alpha-0.8.2.diff
1. http://st.suckless.org/patches/clipboard/st-clipboard-0.8.3.diff

A patches/st-clipboard-0.8.3.diff => patches/st-clipboard-0.8.3.diff +12 -0
@@ 0,0 1,12 @@
diff --git a/x.c b/x.c
index e5f1737..5cabd60 100644
--- a/x.c
+++ b/x.c
@@ -673,6 +673,7 @@ 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

M x.c => x.c +1 -0
@@ 675,6 675,7 @@ 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