aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2011-04-03 21:00:55 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2011-04-03 21:00:55 +0200
commit9b63dd9f435408caf3f91b4dfa9144a611302dd6 (patch)
tree0ceb8ce7bc0fcfca4445ac00266a0ec4d48efdf8 /st.c
parent1adf2e3978365c1e530d79372dd9d67f17fb19f7 (diff)
downloadst-9b63dd9f435408caf3f91b4dfa9144a611302dd6.tar.gz
st-9b63dd9f435408caf3f91b4dfa9144a611302dd6.tar.bz2
st-9b63dd9f435408caf3f91b4dfa9144a611302dd6.zip
fix utf8 clipboard. (thx Petr Sabata)
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index ed750e6..d0f2f5e 100644
--- a/st.c
+++ b/st.c
@@ -483,7 +483,7 @@ selrequest(XEvent *e) {
XA_ATOM, 32, PropModeReplace,
(unsigned char *) &string, 1);
xev.property = xsre->property;
- } else if(xsre->target == XA_STRING) {
+ } else if(xsre->target == sel.xtarget) {
XChangeProperty(xsre->display, xsre->requestor, xsre->property,
xsre->target, 8, PropModeReplace,
(unsigned char *) sel.clip, strlen(sel.clip));