From ec247ba982765a05b680ab16f33e0c190773502c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 4 Mar 2020 07:24:14 -0800 Subject: [PATCH] win-capture: Find correct window even if it's minimized In window capture, it will search for a window with a specific title, but will not search minimized windows. This fixes that by making is acquire the correct window even if that window is minimized, rather than potentially risk it capturing the wrong window of the same type. --- plugins/win-capture/window-capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/win-capture/window-capture.c b/plugins/win-capture/window-capture.c index 5a569d8bc..219ae505e 100644 --- a/plugins/win-capture/window-capture.c +++ b/plugins/win-capture/window-capture.c @@ -385,12 +385,12 @@ static void wc_tick(void *data, float seconds) wc->check_window_timer = 0.0f; wc->window = (wc->method == METHOD_WGC) - ? find_window_top_level(EXCLUDE_MINIMIZED, + ? find_window_top_level(INCLUDE_MINIMIZED, wc->priority, wc->class, wc->title, wc->executable) - : find_window(EXCLUDE_MINIMIZED, + : find_window(INCLUDE_MINIMIZED, wc->priority, wc->class, wc->title, wc->executable); if (!wc->window) { -- GitLab