From 43c8441f6ce0a9f41fbf4ff020454ef120c8dab0 Mon Sep 17 00:00:00 2001 From: webbeef Date: Fri, 25 Oct 2024 07:48:47 -0700 Subject: [PATCH] ServoShell: Don't request redrawing again when processing a RedrawRequested event (#34008) Signed-off-by: webbeef --- ports/servoshell/desktop/app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/servoshell/desktop/app.rs b/ports/servoshell/desktop/app.rs index db2c5e89db6..9f14b3b8521 100644 --- a/ports/servoshell/desktop/app.rs +++ b/ports/servoshell/desktop/app.rs @@ -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();