diff --git a/client/src/app.rs b/client/src/app.rs index fc1f52f..595c7c5 100644 --- a/client/src/app.rs +++ b/client/src/app.rs @@ -57,6 +57,8 @@ impl NavkaClientApp { if self.dev_mode { tokio::time::sleep(Duration::from_secs(30)).await; warn!("dev‑mode timeout"); + self.aggregator.keyboards.dev.ungrab(); + self.aggregator.mice.dev.ungrab(); std::process::exit(0); } else { futures::future::pending::<()>().await } }; diff --git a/client/src/main.rs b/client/src/main.rs index 4e9eb2e..67f4aef 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -38,7 +38,7 @@ async fn main() -> Result<()> { let file = OpenOptions::new() .create(true) .write(true) - .truncate(true) + // .truncate(true) .open(&log_path)?; let (file_writer, guard) = non_blocking(file); _guard = Some(guard);