From 2c19cdc6c5652c9d643424408e81f03c07ca447b Mon Sep 17 00:00:00 2001 From: Mike Lowis Date: Fri, 16 Sep 2016 09:01:09 -0400 Subject: [PATCH] Applied clipboard patch to st cleanly --- patches/st-clipboard-0.6.diff | 13 +++++++++++++ st/st.c | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 patches/st-clipboard-0.6.diff diff --git a/patches/st-clipboard-0.6.diff b/patches/st-clipboard-0.6.diff new file mode 100644 index 0000000..25e6a2a --- /dev/null +++ b/patches/st-clipboard-0.6.diff @@ -0,0 +1,13 @@ +diff --git a/st.c b/st.c +index b89d094..6658e6a 100644 +--- a/st.c ++++ b/st.c +@@ -1155,6 +1155,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/st.c b/st/st.c index 2594c65..ebdde9f 100644 --- a/st/st.c +++ b/st/st.c @@ -1263,6 +1263,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 -- 2.52.0