Skip to content

Commit

Permalink
fix(platforms/windows): Re-export the windows-rs HWND type (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell committed Nov 23, 2022
1 parent a06725e commit 389187a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

2 changes: 2 additions & 0 deletions platforms/windows/src/lib.rs
Expand Up @@ -13,5 +13,7 @@ pub use adapter::{Adapter, QueuedEvents};
mod subclass;
pub use subclass::SubclassingAdapter;

pub use windows::Win32::Foundation::HWND;

#[cfg(test)]
mod tests;
6 changes: 0 additions & 6 deletions platforms/winit/Cargo.toml
Expand Up @@ -18,12 +18,6 @@ winit = { version = "0.27.3", default-features = false, features = ["x11", "wayl
[target.'cfg(target_os = "windows")'.dependencies]
accesskit_windows = { version = "0.9.0", path = "../windows" }

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.42.0"
features = [
"Win32_Foundation",
]

[target.'cfg(target_os = "macos")'.dependencies]
accesskit_macos = { version = "0.0.0", path = "../macos" }

Expand Down
3 changes: 1 addition & 2 deletions platforms/winit/src/platform_impl/windows.rs
Expand Up @@ -3,8 +3,7 @@
// the LICENSE-APACHE file).

use accesskit::{ActionHandler, TreeUpdate};
use accesskit_windows::{Adapter as WindowsAdapter, SubclassingAdapter};
use windows::Win32::Foundation::HWND;
use accesskit_windows::{Adapter as WindowsAdapter, SubclassingAdapter, HWND};
use winit::{platform::windows::WindowExtWindows, window::Window};

pub struct Adapter {
Expand Down

0 comments on commit 389187a

Please sign in to comment.