screen_create_pixmap_buffer()

Send a request to the composition manager to add a new buffer to a pixmap.

Synopsis:

#include <screen/screen.h>
 
int screen_create_pixmap_buffer(screen_pixmap_t pix)

Arguments:

pix

The handle of the pixmap for which a new buffer will be created.

Library:

libscreen

Description:

Function Type: Flushing Execution

This function to adds a buffer to a pixmap. A buffer cannot be created if a buffer was previously attached using screen_attach_pixmap_buffer().

Returns:

0 if a new pixmap buffer was created,or -1 if an error occurred (errno is set).