diff --git a/Cargo.toml b/Cargo.toml index 5720ae7b..8dc3e2e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ lazy_static = "1" libc = "0.2" log = "0.4" serde = { version = "1", optional = true, features = ["serde_derive"] } -raw-window-handle = "0.2" +raw-window-handle = "0.3" [dev-dependencies] image = "0.21" diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 4a00962b..629eae17 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -367,6 +367,7 @@ impl Window { pub fn raw_window_handle(&self) -> RawWindowHandle { let handle = WindowsHandle { hwnd: self.window.0 as *mut _, + hinstance: self.hinstance() as *mut _, ..WindowsHandle::empty() }; RawWindowHandle::Windows(handle)