X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;fp=st.c;h=39a6836b0b0558f7e1249c427ae750b75a2d5d59;hp=a494c7d1dace0578a1a94ca7e8b0c88eef718839;hb=28259f5750f0dc7f52bbaf8b746ec3dc576a58ee;hpb=9494362d0b35dfe2fa22c3e36ed7b2043b2e8a3d 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) { void xsetsel(char *str) { - /* register the selection for both the clipboard and the primary */ - Atom clipboard; - free(sel.clip); sel.clip = str; - XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime); - - clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); - XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime); } void