fix: temporalily remove the unsafe pointer HWND
This commit is contained in:
parent
5919325d9b
commit
00d6baf861
2 changed files with 5 additions and 5 deletions
|
|
@ -154,9 +154,9 @@ impl Window {
|
|||
{
|
||||
use winit::platform::windows::WindowBuilderExtWindows;
|
||||
|
||||
if let Some(parent) = self.platform_specific.parent {
|
||||
window_builder = window_builder.with_parent_window(parent);
|
||||
}
|
||||
// if let Some(parent) = self.platform_specific.parent {
|
||||
// window_builder = window_builder.with_parent_window(parent);
|
||||
// }
|
||||
|
||||
window_builder = window_builder
|
||||
.with_drag_and_drop(self.platform_specific.drag_and_drop);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct PlatformSpecific {
|
||||
/// Parent window
|
||||
pub parent: Option<winit::platform::windows::HWND>,
|
||||
// pub parent: Option<winit::platform::windows::HWND>,
|
||||
|
||||
/// Drag and drop support
|
||||
pub drag_and_drop: bool,
|
||||
|
|
@ -13,7 +13,7 @@ pub struct PlatformSpecific {
|
|||
impl Default for PlatformSpecific {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
parent: None,
|
||||
// parent: None,
|
||||
drag_and_drop: true,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue