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.
master
jp9000 2014-11-10 01:28:59 -08:00
parent 422c6ffe86
commit 5e2eef6231
1 changed files with 1 additions and 1 deletions

View File

@ -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;