Cause a window to leave a window group.
#include <screen/screen.h>
int screen_leave_window_group(screen_window_t win)
The handle for the window that is to leave the group. This window must have been created with screen_create_window_type() with a type of either SCREEN_CHILD_WINDOW or SCREEN_EMBEDDED_WINDOW.
0 if the request for the window leaving its group was queued, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details).