diff options
author | 2024-05-07 17:00:55 +0200 | |
---|---|---|
committer | 2024-05-07 17:00:55 +0200 | |
commit | 7e7285d60f08e9d32a796e9adf7e37535a67fc43 (patch) | |
tree | eb4f35495ca3b2f8d0e0cf3ae581dcc973f4736b /winit/src/application.rs | |
parent | 2645524f88414393d8b3ca9c6fe801b32b5ebd33 (diff) | |
download | iced-7e7285d60f08e9d32a796e9adf7e37535a67fc43.tar.gz iced-7e7285d60f08e9d32a796e9adf7e37535a67fc43.tar.bz2 iced-7e7285d60f08e9d32a796e9adf7e37535a67fc43.zip |
Plug `new_events` handler to event loop
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index e056f4c5..3bc29255 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -341,6 +341,21 @@ where } } + fn new_events( + &mut self, + event_loop: &winit::event_loop::ActiveEventLoop, + cause: winit::event::StartCause, + ) { + if self.boot.is_some() { + return; + } + + self.process_event( + event_loop, + winit::event::Event::NewEvents(cause), + ); + } + fn window_event( &mut self, event_loop: &winit::event_loop::ActiveEventLoop, |