mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-07-04 14:24:49 +03:00
Compare commits
1 Commits
main-6fb7e
...
main-133e1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
133e1ae81d |
@@ -413,7 +413,15 @@ async fn do_capture_session(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// find client corresponding to barrier
|
// find client corresponding to barrier
|
||||||
let pos = *pos_for_barrier_id.get(&barrier_id).expect("invalid barrier id");
|
let pos = match pos_for_barrier_id.get(&barrier_id) {
|
||||||
|
Some(id) => *id,
|
||||||
|
None => {
|
||||||
|
log::warn!("INVALID BARRIER ID: Id {barrier_id} does not exist!");
|
||||||
|
let id = find_corresponding_client(&barriers, activated.cursor_position().expect("no cursor position reported by compositor"));
|
||||||
|
let pos = *pos_for_barrier_id.get(&id).expect("invalid barrier id");
|
||||||
|
pos
|
||||||
|
},
|
||||||
|
};
|
||||||
current_pos.replace(Some(pos));
|
current_pos.replace(Some(pos));
|
||||||
|
|
||||||
// client entered => send event
|
// client entered => send event
|
||||||
|
|||||||
Reference in New Issue
Block a user