Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions libs/cua-driver/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions libs/cua-driver/rust/crates/cursor-overlay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,16 @@ impl CursorRegistry {
pub fn all_states(&self) -> Vec<CursorInstanceState> {
self.inner.lock().unwrap().values().cloned().collect()
}

/// Drop a session's cursor metadata entry (fired from the `session_end`
/// hook). The `"default"` key backs the anonymous / one-shot path and is
/// guarded against removal; an empty or absent key is a harmless no-op.
pub fn remove(&self, cursor_id: &str) {
if cursor_id.is_empty() || cursor_id == "default" {
return;
}
self.inner.lock().unwrap().remove(cursor_id);
}
}

impl Default for CursorRegistry {
Expand Down
4 changes: 4 additions & 0 deletions libs/cua-driver/rust/crates/platform-windows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ async-trait = "0.1"
cua-driver-core = { path = "../cua-driver-core" }
cursor-overlay = { path = "../cursor-overlay" }
pip-preview = { path = "../pip-preview" }
# IndexMap gives the keyed cursor render collection deterministic
# insertion-ordered iteration = stable per-session cursor z-order frame to
# frame (mirrors platform-macos's per-session overlay).
indexmap = "2"
# tiny-skia for cross-platform cursor rendering (used in overlay.rs on all targets)
tiny-skia = { version = "0.11", default-features = false, features = ["std"] }

Expand Down
Loading
Loading