diff --git a/crates/lumen-host/src/m0.rs b/crates/lumen-host/src/m0.rs index 6f68d14..6e9ae10 100644 --- a/crates/lumen-host/src/m0.rs +++ b/crates/lumen-host/src/m0.rs @@ -59,6 +59,10 @@ pub fn run(opts: Options) -> Result<()> { } }; + // Activate the capturer so the portal/PipeWire process callback actually delivers frames + // (it gates the per-frame de-pad on `active`; idle by default so reconnects are cheap). + capturer.set_active(true); + // The first frame establishes the authoritative dimensions (the portal's negotiated // size, or the synthetic size) used to configure the encoder. let first = capturer.next_frame().context("capture first frame")?; diff --git a/crates/lumen-host/src/main.rs b/crates/lumen-host/src/main.rs index 654225a..5c6d22a 100644 --- a/crates/lumen-host/src/main.rs +++ b/crates/lumen-host/src/main.rs @@ -85,7 +85,9 @@ fn input_test() -> Result<()> { y, flags: 0, }; - tracing::info!("input-test: injecting a mouse square + 'A'/click taps for ~8s (watch wev / focused app)"); + tracing::info!( + "input-test: injecting a mouse square + 'A'/click taps for ~8s (watch wev / focused app)" + ); for i in 0..160u32 { let (dx, dy) = match (i / 10) % 4 { 0 => (12, 0),