fix: correct event types for windows
This commit is contained in:
parent
c0473f8a91
commit
5ca1838a2d
1 changed files with 4 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ where
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
let is_move_or_resize = matches!(
|
let is_move_or_resize = matches!(
|
||||||
event,
|
event,
|
||||||
winit::event::WindowEvent::Resized(_)
|
winit::event::WindowEvent::SurfaceResized(_)
|
||||||
| winit::event::WindowEvent::Moved(_)
|
| winit::event::WindowEvent::Moved(_)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -259,7 +259,9 @@ where
|
||||||
if is_move_or_resize {
|
if is_move_or_resize {
|
||||||
self.process_event(
|
self.process_event(
|
||||||
event_loop,
|
event_loop,
|
||||||
Event::EventLoopAwakened(winit::Event::AboutToWait),
|
Some(Event::EventLoopAwakened(
|
||||||
|
winit::Event::AboutToWait,
|
||||||
|
)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue