mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
ServoShell: Don't request redrawing again when processing a RedrawRequested event (#34008)
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
600ba602b7
commit
43c8441f6c
1 changed files with 2 additions and 1 deletions
|
@ -278,7 +278,8 @@ impl App {
|
||||||
"Sync WebView size with Window Resize event",
|
"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
|
// Request a winit redraw event, so we can recomposite, update and paint
|
||||||
// the minibrowser, and present the new frame.
|
// the minibrowser, and present the new frame.
|
||||||
window.winit_window().unwrap().request_redraw();
|
window.winit_window().unwrap().request_redraw();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue