Skip to content

Commit

Permalink
Add unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed May 11, 2023
1 parent 861a247 commit e82ce8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion winit/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ impl Window {
#[cfg(target_os = "windows")]
{
use winit::platform::windows::WindowBuilderExtWindows;
unsafe {
window_builder = window_builder
.with_parent_window(self.platform_specific.parent);
}
window_builder = window_builder
.with_parent_window(self.platform_specific.parent)
.with_drag_and_drop(self.platform_specific.drag_and_drop);
}

Expand Down

0 comments on commit e82ce8d

Please sign in to comment.