report target list as 32-bit chunks, not 8-bit, for OS X

This commit is contained in:
rsc 2007-05-04 02:19:18 +00:00
parent 7c809320ca
commit 4b3989fd41

View file

@ -528,7 +528,7 @@ if(0) fprint(2, "xselect target=%d requestor=%d property=%d selection=%d\n",
a[3] = _x.compoundtext; a[3] = _x.compoundtext;
XChangeProperty(_x.display, xe->requestor, xe->property, xe->target, XChangeProperty(_x.display, xe->requestor, xe->property, xe->target,
8, PropModeReplace, (uchar*)a, sizeof a); 8*sizeof(a[0]), PropModeReplace, (uchar*)a, nelem(a));
}else if(xe->target == XA_STRING }else if(xe->target == XA_STRING
|| xe->target == _x.utf8string || xe->target == _x.utf8string
|| xe->target == _x.text || xe->target == _x.text