- Specifies the connection to the Y server, obtained by a call to YOpenConnection.
- Specifies the event buffer that contains the values to be `put back'. See YEvent for more information about this structure.
The YPutBackEvent function `puts back' the event values in the event buffer.
This `put back' event will be placed at the end (newest) of the event queue. That means that if there were already events queued when YPutBackEvent was called, calling YGetNextEvent will not produce the event you just `put back'.
int main(int argc, char *argv)
YConnection *con = YOpenConnection(
if(con == NULL)
printf("Waiting for event...\n");
con, &event, True
) > 0)
"Got event type %i\n",
printf("Event put back.\n");