XCBGenericEvent *XCBPollEvent(XCBConnection *c); If there are any events currently in the queue, the first event is returned. Otherwise, a null pointer is returned. Basicly, it works the same as XCBWaitEvent() except it returns null instead of waiting for an event if there is not one currently in the queue. ---Andy Howe