screen_share_window_buffers()

Cause a window to share buffers which have been created for or attached to another window.

Synopsis:

#include <screen/screen.h>
 
int screen_share_window_buffers(screen_window_t win, screen_window_t share)

Arguments:

win

The handle of the window that will be sharing the buffer(s) owned by another window.

share

The handle of the window whose buffer(s) is to be shared.

Library:

libscreen

Description:

Function Type: Flushing Execution

Returns:

0 if the windows are sharing buffers, or -1 if an error occurred (errno is set).