From 239cad00e4c6df756dda8fcbea55d825d708571c Mon Sep 17 00:00:00 2001 From: David Bieber Date: Sun, 5 Apr 2020 11:32:51 -0400 Subject: [PATCH] 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. --- plugins/mac-capture/window-utils.m | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mac-capture/window-utils.m b/plugins/mac-capture/window-utils.m index 0380df656..eed65d67b 100644 --- a/plugins/mac-capture/window-utils.m +++ b/plugins/mac-capture/window-utils.m @@ -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);