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;
|
use winit::platform::windows::WindowBuilderExtWindows;
|
||||||
|
|
||||||
if let Some(parent) = self.platform_specific.parent {
|
// if let Some(parent) = self.platform_specific.parent {
|
||||||
window_builder = window_builder.with_parent_window(parent);
|
// window_builder = window_builder.with_parent_window(parent);
|
||||||
}
|
// }
|
||||||
|
|
||||||
window_builder = window_builder
|
window_builder = window_builder
|
||||||
.with_drag_and_drop(self.platform_specific.drag_and_drop);
|
.with_drag_and_drop(self.platform_specific.drag_and_drop);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub struct PlatformSpecific {
|
pub struct PlatformSpecific {
|
||||||
/// Parent window
|
/// Parent window
|
||||||
pub parent: Option<winit::platform::windows::HWND>,
|
// pub parent: Option<winit::platform::windows::HWND>,
|
||||||
|
|
||||||
/// Drag and drop support
|
/// Drag and drop support
|
||||||
pub drag_and_drop: bool,
|
pub drag_and_drop: bool,
|
||||||
|
|
@ -13,7 +13,7 @@ pub struct PlatformSpecific {
|
||||||
impl Default for PlatformSpecific {
|
impl Default for PlatformSpecific {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
parent: None,
|
// parent: None,
|
||||||
drag_and_drop: true,
|
drag_and_drop: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue