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 cannot be created using screen_create_window_buffers() if at some point prior, buffers were attached to this window using screen_attach_window_buffers(). Buffers will be created with the size of SCREEN_PROPERTY_BUFFER_SIZE as set for the window.

Returns:

0 if new buffers were created for the specified window, 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.