From d6027d7da64c090e8735e755dc5095d77c38b721 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Thu, 11 May 2023 17:40:09 +0100 Subject: Use raw-window-handle instead of HWND --- winit/Cargo.toml | 1 + winit/src/settings/windows.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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, + pub parent: Option, /// Drag and drop support pub drag_and_drop: bool, -- cgit