mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-16 17:31:28 +03:00
fix duplicate barriers
This commit is contained in:
@@ -112,15 +112,15 @@ async fn do_capture(
|
|||||||
.map(|(h, s)| (h, s.clone()))
|
.map(|(h, s)| (h, s.clone()))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
log::info!("{clients:?}");
|
log::info!("{clients:?}");
|
||||||
let clients = server
|
// let clients = server
|
||||||
.client_manager
|
// .client_manager
|
||||||
.borrow()
|
// .borrow()
|
||||||
.get_client_states()
|
// .get_client_states()
|
||||||
.map(|(h, (c, _))| (h, c.pos))
|
// .map(|(h, (c, _))| (h, c.pos))
|
||||||
.collect::<Vec<_>>();
|
// .collect::<Vec<_>>();
|
||||||
for (handle, pos) in clients {
|
// for (handle, pos) in clients {
|
||||||
capture.create(handle, pos.into()).await?;
|
// capture.create(handle, pos.into()).await?;
|
||||||
}
|
// }
|
||||||
|
|
||||||
let mut pressed_keys = HashSet::new();
|
let mut pressed_keys = HashSet::new();
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user