On Sat, Jan 2, 2010 at 6:25 AM, Michele Comignano wrote: > Maybe I miss something, but a solution could be a xcb_poll_event like function > than returns XCB_NONE in case of empty queue. xcb_poll_for_event returns NULL when the queue is empty. Is that what you are looking for? Peter Harris