diff options
author | 2023-05-11 17:40:09 +0100 | |
---|---|---|
committer | 2023-05-11 17:41:44 +0100 | |
commit | d6027d7da64c090e8735e755dc5095d77c38b721 (patch) | |
tree | f7ce3bde9d0d92d5fbcfd31269e4115d104c78cd | |
parent | 09a2a061303e954dbae7dab6f9bf092c121900f8 (diff) | |
download | iced-d6027d7da64c090e8735e755dc5095d77c38b721.tar.gz iced-d6027d7da64c090e8735e755dc5095d77c38b721.tar.bz2 iced-d6027d7da64c090e8735e755dc5095d77c38b721.zip |
Use raw-window-handle instead of HWND
-rw-r--r-- | winit/Cargo.toml | 1 | ||||
-rw-r--r-- | winit/src/settings/windows.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/winit/Cargo.toml b/winit/Cargo.toml index 56efbe77..a1f3233b 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -26,6 +26,7 @@ wayland-csd-adwaita = ["winit/wayland-csd-adwaita"] window_clipboard = { git = "https://github.com/TobTobXX/window_clipboard", rev = "1392da8339c8aebb9849d00eb7383a73ed076f1d" } log = "0.4" thiserror = "1.0" +raw-window-handle = "0.5" [dependencies.winit] version = "0.28" diff --git a/winit/src/settings/windows.rs b/winit/src/settings/windows.rs index ff03a9c5..ce18da75 100644 --- a/winit/src/settings/windows.rs +++ b/winit/src/settings/windows.rs @@ -1,10 +1,12 @@ //! Platform specific settings for Windows. +use raw_window_handle::RawWindowHandle; + /// The platform specific window settings of an application. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct PlatformSpecific { /// Parent window - pub parent: Option<winit::platform::windows::HWND>, + pub parent: Option<RawWindowHandle>, /// Drag and drop support pub drag_and_drop: bool, |