#include <screen/screen.h> int screen_flush_context( screen_context_t ctx, int flags );
- The connection to composition manager to be flushed. This must have been created with screen_create_context().
The following flags are available:SCREEN_WAIT_IDLE
This function flushes any delayed command and causes the contents of displays to be updated, when applicable. If SCREEN_WAIT_IDLE is specified, the function will not return until the contents of all affected displays have been updated. Passing no flags causes the function to return immediately. A return value of 0 indicates success. A return value of -1 indicates that an error occurred. The error could have been caused by any delayed function that got flushed.
- The function succeeded and the context is flushed.
- An error occurred (errno is set).