On 17/02/18 18:31, Clemens Eisserer wrote:
Hi,
I would like to use XShmPutImage to upload streaming data to Pixmaps,
however the XSHM extension lacks, as far as I can see, the ability to
notify the client when the actual ShmPut-request has been processed
and the client can start modifying a shared memory segment again.
XShmCompletionEvent?
I found this in some old code of mine...
First do:
shmevid = XShmGetEventBase(dpy) + ShmCompletion;
Then in event loop:
if (xevent.type == shmevid) {
XShmCompletionEvent *e = (XShmCompletionEvent*)&event;
printf("event %d on %lu\n", xevent.type, e->shmseg);
}
HTH
Theo
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s