Introduction
Introduction Statistics Contact Development Disclaimer Help
tSupport XA_STRING in notify request - st - [fork] customized build of st, the …
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 86d1e432a823dad7bb64808b8192014fddc8cd9f
parent c7e24e44c8d66cd5b0a6b015d2112da5f1e4e581
Author: Roberto E. Vargas Caballero <[email protected]>
Date: Sun, 15 Mar 2015 18:07:46 +0000
Support XA_STRING in notify request
Some programs can only deal with XA_STRING, and it makes impossible st
be able of copying to them. This patch makes st answer also to XA_STRING,
althought it sends utf8 strings. It is not a problem because moderm
applications must support utf8.
Diffstat:
M st.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.