diff options
| -rw-r--r-- | core/Cargo.toml | 3 | ||||
| -rw-r--r-- | core/src/window/settings/windows.rs | 5 | ||||
| -rw-r--r-- | winit/src/conversion.rs | 6 | 
3 files changed, 1 insertions, 13 deletions
| diff --git a/core/Cargo.toml b/core/Cargo.toml index 3c557bca..a1228909 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -33,8 +33,5 @@ web-time.workspace = true  dark-light.workspace = true  dark-light.optional = true -[target.'cfg(windows)'.dependencies] -raw-window-handle.workspace = true -  [dev-dependencies]  approx = "0.5" diff --git a/core/src/window/settings/windows.rs b/core/src/window/settings/windows.rs index d3bda259..88fe2fbd 100644 --- a/core/src/window/settings/windows.rs +++ b/core/src/window/settings/windows.rs @@ -1,12 +1,8 @@  //! 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<RawWindowHandle>, -      /// Drag and drop support      pub drag_and_drop: bool, @@ -17,7 +13,6 @@ pub struct PlatformSpecific {  impl Default for PlatformSpecific {      fn default() -> Self {          Self { -            parent: None,              drag_and_drop: true,              skip_taskbar: false,          } diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs index 79fcf92e..0ed10c88 100644 --- a/winit/src/conversion.rs +++ b/winit/src/conversion.rs @@ -73,11 +73,7 @@ pub fn window_attributes(      #[cfg(target_os = "windows")]      {          use winit::platform::windows::WindowAttributesExtWindows; -        #[allow(unsafe_code)] -        unsafe { -            attributes = attributes -                .with_parent_window(settings.platform_specific.parent); -        } +          attributes = attributes              .with_drag_and_drop(settings.platform_specific.drag_and_drop); | 
