ServoShell: Don't request redrawing again when processing a RedrawRequested event (#34008)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2024-10-25 07:48:47 -07:00 committed by GitHub
parent 600ba602b7
commit 43c8441f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,7 +278,8 @@ impl App {
"Sync WebView size with Window Resize event",
);
}
if response.repaint {
if response.repaint && *event != winit::event::WindowEvent::RedrawRequested
{
// Request a winit redraw event, so we can recomposite, update and paint
// the minibrowser, and present the new frame.
window.winit_window().unwrap().request_redraw();