Просмотр исходного кода

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.
jp9000 5 лет назад
Родитель
Сommit
ec247ba982
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugins/win-capture/window-capture.c

+ 2 - 2
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) {