diff --git a/src/app.rs b/src/app.rs index 11b1a53..f58f20b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -408,12 +408,12 @@ impl ApplicationHandler for Application { WindowEvent::Focused(new_focused) => { self.focused = new_focused.then_some(viewport_id); } + WindowEvent::RedrawRequested => { + self.repaint_all(event_loop); + } _ => {} } } - if response.repaint { - self.repaint_all(event_loop); - } self.check_repaint(event_loop); }