summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorShiva <shiv@shiv.me>2017-01-29 21:35:17 -0800
committerShiva <shiv@shiv.me>2017-01-29 21:35:17 -0800
commit683341140065b3096ee9e7e3e3b042f9c52230a6 (patch)
tree1d140e6e92f8954e7b95ddc56430a3d51b51d4dc /st.c
parent7549ffd200a55430609f7f941c6f49a86d831df2 (diff)
clipboard support
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index fbcd9e0..78d1f39 100644
--- a/st.c
+++ b/st.c
@@ -1274,6 +1274,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