Associate a buffer with a pixmap
#include <screen/screen.h>
int screen_attach_pixmap_buffer(screen_pixmap_t pix, screen_buffer_t buf)
Function Type: Flushing Execution
This function allows a pixmap to use a buffer that was allocated by the application or Screen. Note that pixmaps can have only one buffer. For more information, see the "Buffers" chapter of the Screen Developer's Guide.
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).