diff --git a/examples/cli.rs b/examples/cli.rs index 14acff8..d57d1b0 100644 --- a/examples/cli.rs +++ b/examples/cli.rs @@ -216,7 +216,7 @@ fn main() { path: cli.path.clone(), }; - println!("Window title: {}", window_name); + println!("Window title: {}", capture_item.title().expect("Failed to get window title")); println!("Window size: {}x{}", width, height); start_capture(