XFlush()XFlush()NameXFlush – send all queued requests to the server.
SynopsisXFlush(display)
Display *display;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
DescriptionXFlush() sends to the server ("flushes") all requests that have been
buffered but not yet sent.
Flushing is done automatically when input is read if no matching events
are in Xlib's queue (with XPending(), XNextEvent(), or XWindowEvent(),
etc.), or when a call is made that gets information from the server
(such as XQueryPointer(), XGetFontInfo) so XFlush() is seldom needed.
It is used when the buffer must be flushed before any of these calls
are reached.
For more information, see Volume One, Chapter 2, X Concepts, and Chap‐
ter 3, Basic Window Program.
See AlsoXSync().
Xlib - Output Buffer XFlush()