Hi Theo, > shmevid = XShmGetEventBase(dpy) + ShmCompletion; Thanks for the hint - I hadn't notiticed XShmPutImage is able to trigger events by itself (bool send_event). So I guess I don't need xshmfence at all, Best regards, Clemens