]> git.mdlowis.com Git - proto/iwe.git/commitdiff
Applied clipboard patch to st cleanly
authorMike Lowis <mike.lowis@gentex.com>
Fri, 16 Sep 2016 13:01:09 +0000 (09:01 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Fri, 16 Sep 2016 13:01:09 +0000 (09:01 -0400)
patches/st-clipboard-0.6.diff [new file with mode: 0644]
st/st.c

diff --git a/patches/st-clipboard-0.6.diff b/patches/st-clipboard-0.6.diff
new file mode 100644 (file)
index 0000000..25e6a2a
--- /dev/null
@@ -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 2594c6506c3d221626490e59605724a020d92c43..ebdde9fdc27539b3d8ba98b4c11eaa698c2fb7ab 100644 (file)
--- 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