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.
This commit is contained in:
parent
4f6ab0b2f2
commit
ec247ba982
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user