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().

Returns:

0 if new buffers were created for the specified window, or -1 if an error occurred (errno is set).