screen_destroy_context()

Terminate a connection with the composited windowing system.

Synopsis:

#include <screen/screen.h>
 
int screen_destroy_context(screen_context_t ctx)

Arguments:

ctx

The connection to Screen that is to be terminated. This context must have been created with screen_create_context().

Library:

libscreen

Description:

Function type: Apply Execution

This function closes an existing connection with the composited windowing system resource manager; 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 commands are discarded.

Returns:

0 if the context was destroyed, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details). Note that the error may also have been caused by any delayed execution function that's just been flushed.