shithub: drawterm

Download patch

ref: e64d488c011a4430e47e12a3cb776ed48ee042cc
parent: 14564d23d2114ecff20ab73ff26db5d5db5c0320
author: Russ Cox <rsc@swtch.com>
date: Sat Jul 14 06:22:22 EDT 2012

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

R=rsc
http://codereview.appspot.com/6402045

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -1572,8 +1572,8 @@
 		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 */