aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/servoshell/desktop/app.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/servoshell/desktop/app.rs b/ports/servoshell/desktop/app.rs
index 880178aaff8..48e05a62120 100644
--- a/ports/servoshell/desktop/app.rs
+++ b/ports/servoshell/desktop/app.rs
@@ -395,6 +395,9 @@ impl ApplicationHandler<WakerEvent> for App {
event_loop.set_control_flow(ControlFlow::Wait);
} else {
event_loop.set_control_flow(ControlFlow::Poll);
+ // Even when using polling, we still need to ensure there's an event in the queue
+ // that will make us spin the event loop.
+ window.winit_window().unwrap().request_redraw();
}
// Consume and handle any events from the servoshell UI.
@@ -427,6 +430,9 @@ impl ApplicationHandler<WakerEvent> for App {
event_loop.set_control_flow(ControlFlow::Wait);
} else {
event_loop.set_control_flow(ControlFlow::Poll);
+ // Even when using polling, we still need to ensure there's an event in the queue
+ // that will make us spin the event loop.
+ window.winit_window().unwrap().request_redraw();
}
// Consume and handle any events from the Minibrowser.