From: Christoph Lohmann <20h@r-36.net> Date: Tue, 10 Mar 2015 20:59:41 +0000 (+0100) Subject: Merge branch 'master' of ssh://suckless.org/gitrepos/st X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=c87d45466bac0812101f3b0036a669cd3f72ab6b;hp=adeb2e95d633cf4bbe1bbe5d2caba71776577c21;p=st.git Merge branch 'master' of ssh://suckless.org/gitrepos/st --- 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