Skip to content

Commit

Permalink
Minimal changes to work with the WIP AccessKit Android adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell committed Sep 5, 2024
1 parent 786ab63 commit 479bca9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 57 deletions.
86 changes: 32 additions & 54 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ dpi = "0.1.1"
image = { version = "0.25.2", default-features = false }
web-time = "1.1.0"
bitflags = "2.6.0"
accesskit = "0.16.0"
accesskit_winit = "0.22.0"
accesskit = { git = "https://github.com/AccessKit/accesskit.git", branch = "android-basics" }
accesskit_winit = { git = "https://github.com/AccessKit/accesskit.git", branch = "android-basics" }
nv-flip = "0.1.2"
time = "0.3.36"
3 changes: 2 additions & 1 deletion masonry/src/event_loop_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ impl MasonryState<'_> {

let window = event_loop.create_window(attributes).unwrap();

let adapter = Adapter::with_event_loop_proxy(&window, self.proxy.clone());
let adapter =
Adapter::with_event_loop_proxy(event_loop, &window, self.proxy.clone());
window.set_visible(visible);
let window = Arc::new(window);
// https://github.com/rust-windowing/winit/issues/2308
Expand Down

0 comments on commit 479bca9

Please sign in to comment.