Discard the specified window regions
#include <screen/screen.h>
int screen_discard_window_regions(screen_window_t win, int count, const int *rects)
Function Type: Delayed Execution
This function is a hole-punching API. Use this function to specify window regions you want to discard. The regions behave as if they were transparent, or as if there were no transparency on the window. When you call this function, it invalidates any regions you might have defined previously. You can call this function with count set to 0 to remove discarded regions.
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).