mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-06-28 19:24:48 +03:00
Compare commits
2 Commits
main-6fb7e
...
main-392af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
392af44cbe | ||
|
|
133e1ae81d |
8
.github/workflows/rust.yml
vendored
8
.github/workflows/rust.yml
vendored
@@ -40,7 +40,6 @@ jobs:
|
||||
- test
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install Linux deps
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
@@ -49,6 +48,13 @@ jobs:
|
||||
- name: Install macOS dependencies
|
||||
if: runner.os == 'macOS'
|
||||
run: brew install gtk4 libadwaita imagemagick
|
||||
- name: Record macOS native lib versions for cache key
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
echo "MACOS_LIB_VER=$(brew list --versions glib gtk4 libadwaita | tr '\n' '_')" >> "$GITHUB_ENV"
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
prefix-key: ${{ env.MACOS_LIB_VER }}
|
||||
- name: Install Windows Dependencies - create gtk dir
|
||||
if: runner.os == 'Windows'
|
||||
run: mkdir C:\gtk-build\gtk\x64\release
|
||||
|
||||
@@ -413,7 +413,15 @@ async fn do_capture_session(
|
||||
};
|
||||
|
||||
// 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));
|
||||
|
||||
// client entered => send event
|
||||
|
||||
Reference in New Issue
Block a user