#include <screen/screen.h> int screen_destroy_context( screen_context_t ctx );
- The connection to composition manager to be terminated. This should have been created with screen_create_context().
This function closes an existing connection with the composited windowing system resource manager (screen). If the call succeeds, the context is freed and can no longer be used. All windows and pixmaps associated with this connection will be destroyed. All events waiting in the event queue will be discarded.
This operation does not flush the command buffer. Any pending asynchronous command is discarded.
- The function succeeded and the context is destroyed.
- An error occurred (errno is set).