screen_create_window_buffers()

Send a request to the composition manager to add new buffers to a window

Synopsis:

#include <screen/screen.h>
int screen_create_window_buffers(screen_window_t win,
                                 int count)

Arguments:

win
The handle of the window for which the new buffers must be allocated.
count
The number of buffers to be created for this window.

Library:

libscreen

Description:

Function Type: Flushing Execution

This function adds buffers to a window. Windows need at least one buffer in order to be visible. Buffers can't be created using screen_create_window_buffers() if, at some point prior, buffers were attached to this window using screen_attach_window_buffers(). Buffers are created with the size of SCREEN_PROPERTY_BUFFER_SIZE as set for the window.

Returns:

0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).