aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/st.c b/st.c
index a494c7d..39a6836 100644
--- a/st.c
+++ b/st.c
@@ -1079,16 +1079,9 @@ selrequest(XEvent *e) {
1079 1079
1080void 1080void
1081xsetsel(char *str) { 1081xsetsel(char *str) {
1082 /* register the selection for both the clipboard and the primary */
1083 Atom clipboard;
1084
1085 free(sel.clip); 1082 free(sel.clip);
1086 sel.clip = str; 1083 sel.clip = str;
1087
1088 XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime); 1084 XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime);
1089
1090 clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0);
1091 XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime);
1092} 1085}
1093 1086
1094void 1087void