Skip to content

Commit

Permalink
Use raw-window-handle instead of HWND
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed May 11, 2023
1 parent 09a2a06 commit cd5594b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion winit/src/settings/windows.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit cd5594b

Please sign in to comment.