Skip to content

Commit

Permalink
feat(rendering): Redraw the window when it regains focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedseven committed Jan 17, 2024
1 parent 41a9b36 commit 9648b21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ fn run_presentation(
match event {
Event::WindowEvent { event, .. } => match event {
WindowEvent::CloseRequested => window_target.exit(),
WindowEvent::Focused(true) => window.request_redraw(),
WindowEvent::RedrawRequested => {
renderer.render(&presentation.slides[current_slide]);
}
Expand Down

0 comments on commit 9648b21

Please sign in to comment.