---
st.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 4b98b27..aa4185c 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
--
2.2.1
Received on Sun Mar 15 2015 - 19:15:30 CET
This archive was generated by hypermail 2.3.0 : Sun Mar 15 2015 - 19:24:07 CET