fn select_target<'a, W: WindowFacts>(
all: &'a [W],
title_contains: Option<&str>,
index: Option<usize>,
pid: Option<u32>,
resolved: &mut Option<(CaptureTier, String)>,
) -> Result<&'a W>Expand description
The window CaptureWindow was asked for, by pid or by title, out of every window all.
Fills resolved as soon as a withheld window is the one asked for, so the audit can tell
it from an absent one; what the caller is told never differs between the two for a title.