gui-x11: better snarfing with Chrome/Opera (ported from p9p, thanks Ethan Grammatikidis)

R=rsc
http://codereview.appspot.com/6402045
This commit is contained in:
Russ Cox 2012-07-14 10:22:22 -04:00
parent 14564d23d2
commit e64d488c01

View File

@ -1572,8 +1572,8 @@ if(0) iprint("xselect target=%d requestor=%d property=%d selection=%d\n",
a[2] = text; a[2] = text;
a[3] = compoundtext; a[3] = compoundtext;
XChangeProperty(xd, xe->requestor, xe->property, xe->target, XChangeProperty(xd, xe->requestor, xe->property, XA_ATOM,
8, PropModeReplace, (uchar*)a, sizeof a); 32, PropModeReplace, (uchar*)a, sizeof a);
}else if(xe->target == XA_STRING || xe->target == utf8string || xe->target == text || xe->target == compoundtext){ }else if(xe->target == XA_STRING || xe->target == utf8string || xe->target == text || xe->target == compoundtext){
text: text:
/* if the target is STRING we're supposed to reply with Latin1 XXX */ /* if the target is STRING we're supposed to reply with Latin1 XXX */