Skip to content

Commit

Permalink
Update run.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored May 27, 2024
1 parent e0daba6 commit 102c8df
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,10 @@ fn run_and_return(
}

winit::event::Event::NewEvents(winit::event::StartCause::ResumeTimeReached {
start,
requested_resume: _,
..
}) => {
log::trace!("Woke up to check next_repaint_time");
if let Some(window_id) = winit_app.window_id_from_viewport_id(egui::ViewportId::ROOT) {
EventResult::RepaintAt(window_id, *start)
} else {
EventResult::Wait
}
EventResult::Wait
}

event => match winit_app.on_event(event_loop_window_target, event) {
Expand Down

0 comments on commit 102c8df

Please sign in to comment.