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
parent
422c6ffe86
commit
5e2eef6231
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue