From 5e2eef6231ba72b2a9a72c2e052c9b9dca461b31 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 10 Nov 2014 01:28:59 -0800 Subject: [PATCH] win-capture: Fix a bug with INCLUDE_MINIMIZED This fixes a bug where if INCLUDE_MINIMIZED was set and the window size was (0, 0), the window would still be excluded from the resulting list that was created. --- plugins/win-capture/window-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/window-helpers.c b/plugins/win-capture/window-helpers.c index 32514aba1..cd53a80f7 100644 --- a/plugins/win-capture/window-helpers.c +++ b/plugins/win-capture/window-helpers.c @@ -180,7 +180,7 @@ static bool check_window_valid(HWND window, enum window_search_mode mode) return false; if (styles & WS_CHILD) return false; - if (rect.bottom == 0 || rect.right == 0) + if (mode == EXCLUDE_MINIMIZED && (rect.bottom == 0 || rect.right == 0)) return false; return true;