Sfoglia il codice sorgente

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 6 anni fa
parent
commit
ec247ba982
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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) {