fix utf8 clipboard. (thx Petr Sabata)

This commit is contained in:
Aurélien Aptel 2011-04-03 21:00:55 +02:00
parent 1adf2e3978
commit 9b63dd9f43

2
st.c
View File

@ -483,7 +483,7 @@ selrequest(XEvent *e) {
XA_ATOM, 32, PropModeReplace, XA_ATOM, 32, PropModeReplace,
(unsigned char *) &string, 1); (unsigned char *) &string, 1);
xev.property = xsre->property; xev.property = xsre->property;
} else if(xsre->target == XA_STRING) { } else if(xsre->target == sel.xtarget) {
XChangeProperty(xsre->display, xsre->requestor, xsre->property, XChangeProperty(xsre->display, xsre->requestor, xsre->property,
xsre->target, 8, PropModeReplace, xsre->target, 8, PropModeReplace,
(unsigned char *) sel.clip, strlen(sel.clip)); (unsigned char *) sel.clip, strlen(sel.clip));