From e64d488c011a4430e47e12a3cb776ed48ee042cc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 14 Jul 2012 10:22:22 -0400 Subject: [PATCH] gui-x11: better snarfing with Chrome/Opera (ported from p9p, thanks Ethan Grammatikidis) R=rsc http://codereview.appspot.com/6402045 --- gui-x11/x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui-x11/x11.c b/gui-x11/x11.c index 39799f2..2121582 100644 --- a/gui-x11/x11.c +++ b/gui-x11/x11.c @@ -1572,8 +1572,8 @@ if(0) iprint("xselect target=%d requestor=%d property=%d selection=%d\n", a[2] = text; a[3] = compoundtext; - XChangeProperty(xd, xe->requestor, xe->property, xe->target, - 8, PropModeReplace, (uchar*)a, sizeof a); + XChangeProperty(xd, xe->requestor, xe->property, XA_ATOM, + 32, PropModeReplace, (uchar*)a, sizeof a); }else if(xe->target == XA_STRING || xe->target == utf8string || xe->target == text || xe->target == compoundtext){ text: /* if the target is STRING we're supposed to reply with Latin1 XXX */