X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;fp=st.c;h=aa4185c7c81d816896848184e6546ebd5b746a57;hp=4b98b2784aa8ce7e9a068a6a37640c96a8c8cd0c;hb=86d1e432a823dad7bb64808b8192014fddc8cd9f;hpb=c7e24e44c8d66cd5b0a6b015d2112da5f1e4e581 diff --git a/st.c b/st.c index 4b98b27..aa4185c 100644 --- a/st.c +++ b/st.c @@ -1089,7 +1089,11 @@ selrequest(XEvent *e) { XA_ATOM, 32, PropModeReplace, (uchar *) &string, 1); xev.property = xsre->property; - } else if(xsre->target == sel.xtarget) { + } else if(xsre->target == sel.xtarget || xsre->target == XA_STRING) { + /* + * xith XA_STRING non ascii characters may be incorrect in the + * requestor. It is not our problem, use utf8. + */ clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); if(xsre->selection == XA_PRIMARY) { seltext = sel.primary;