mac-capture: Use window id to identify windows on MacOS

Use a window's window id in init_window in the mac window capture plugin.
master
David Bieber 2020-04-05 11:32:51 -04:00
parent 47058d9b69
commit 239cad00e4
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ void init_window(cocoa_window_t cw, obs_data_t *settings)
cw->owner_name = @(obs_data_get_string(settings, "owner_name"));
cw->window_name = @(obs_data_get_string(settings, "window_name"));
cw->window_id = obs_data_get_int(settings, "window");
[cw->owner_name retain];
[cw->window_name retain];
find_window(cw, settings, true);