XPutBackEvent(Display *display, XEvent *event);
Specifies the connection to the X server.
Specifies the event.
The XPutBackEvent function pushes an event back onto the head of the display's event queue by copying the event into the queue. This can be useful if you read an event and then decide that you would rather deal with it later. There is no limit to the number of times in succession that you can call XPutBackEvent.
XAnyEvent(3), XIfEvent(3), XNextEvent(3), XSendEvent(3)
Xlib - C Language X Interface
XFlush(3), XIfEvent(3), XNextEvent(3), XSendEvent(3).