linux-capture: Fix bug with xshm input showing multiple 0x0 windows

This commit is contained in:
Ford Smith 2019-10-02 01:04:11 -04:00
parent 66967b7a55
commit 003e8474d3
2 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,6 @@ int randr_screen_count(xcb_connection_t *xcb)
{
if (!xcb)
return 0;
xcb_screen_t *screen;
screen = xcb_setup_roots_iterator(xcb_get_setup(xcb)).data;

View File

@ -324,7 +324,9 @@ static bool xshm_server_changed(obs_properties_t *props, obs_property_t *p,
")",
i, w, h, x, y);
obs_property_list_add_int(screens, screen_info.array, i);
if (h > 0 && w > 0)
obs_property_list_add_int(screens, screen_info.array,
i);
}
/* handle missing screen */