screen_destroy_context()

Terminate a connection with the composited windowing system (screen)

Function type:

Apply execution

Synopsis:

#include <screen/screen.h>

int screen_destroy_context( screen_context_t ctx );

Arguments:

ctx
The connection to composition manager to be terminated. This should have been created with screen_create_context().

Library

screen

Description

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.

Returns

0
The function succeeded and the context is destroyed.
-1
An error occurred (errno is set).

Classification

Windowing API

Safety  Value  
Interrupt handler No
Signal handler No
Thread Yes