diff options
| -rw-r--r-- | st.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1089,7 +1089,11 @@ selrequest(XEvent *e) { | |||
| 1089 | XA_ATOM, 32, PropModeReplace, | 1089 | XA_ATOM, 32, PropModeReplace, |
| 1090 | (uchar *) &string, 1); | 1090 | (uchar *) &string, 1); |
| 1091 | xev.property = xsre->property; | 1091 | xev.property = xsre->property; |
| 1092 | } else if(xsre->target == sel.xtarget) { | 1092 | } else if(xsre->target == sel.xtarget || xsre->target == XA_STRING) { |
| 1093 | /* | ||
| 1094 | * xith XA_STRING non ascii characters may be incorrect in the | ||
| 1095 | * requestor. It is not our problem, use utf8. | ||
| 1096 | */ | ||
| 1093 | clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); | 1097 | clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); |
| 1094 | if(xsre->selection == XA_PRIMARY) { | 1098 | if(xsre->selection == XA_PRIMARY) { |
| 1095 | seltext = sel.primary; | 1099 | seltext = sel.primary; |
