[Xcb] I can't send XCB_EXPOSE event

Peter Harris pharris at opentext.com
Wed Dec 9 08:27:19 PST 2015


On 2015-12-09 04:41, Andrzej Borucki wrote:
> testCookie returns me error = 16 = "bad length"

I ran your code (after filling in the blanks) and I don't get BadLength.
Are you sure the error is coming from invalidate and not some other use
of testCookie?

> Inimplementation xcb_send_event_checked in xproto.c is 
> xcb_parts[4].iov_len = 32 * sizeof(char);
> but sizeof(xcb_expose_event_t) = 20, I changed
> xcb_parts[4].iov_len = sizeof(xcb_expose_event_t) 
> and xcb_out.length = (sizeof(xcb_out)+sizeof(xcb_expose_event_t))/4;
> but still is error 16

Classic events are always 32 bytes. Your change will result in
additional BadLength errors.

Peter Harris
-- 
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866


More information about the Xcb mailing list