mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-22 12:40:54 +03:00
fix windows/mac + rename async_drop to terminate
This commit is contained in:
@@ -62,7 +62,7 @@ async fn input_capture_test(config: Config) -> Result<()> {
|
||||
break;
|
||||
}
|
||||
}
|
||||
input_capture.take().unwrap().async_drop().await.unwrap();
|
||||
input_capture.take().unwrap().terminate().await.unwrap();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ pub fn new(
|
||||
CaptureEvent::Destroy(h) => capture.destroy(h).await?,
|
||||
CaptureEvent::Restart => {
|
||||
let clients = server.client_manager.borrow().get_client_states().map(|(h, (c,_))| (h, c.pos)).collect::<Vec<_>>();
|
||||
capture.async_drop().await?;
|
||||
capture.terminate().await?;
|
||||
capture = input_capture::create(backend).await?;
|
||||
for (handle, pos) in clients {
|
||||
capture.create(handle, pos.into()).await?;
|
||||
|
||||
Reference in New Issue
Block a user