flush
fn
int flush() nothrow @nogcProcesses all pending events and returns immediately.
This is equivalent to calling wait(0) and is useful for flushing the event queue.
Returns
Non-zero if there are still visible windows