diff --git a/crates/eframe/src/native/glow_integration.rs b/crates/eframe/src/native/glow_integration.rs index bfdee21d8d9..82def5e8d53 100644 --- a/crates/eframe/src/native/glow_integration.rs +++ b/crates/eframe/src/native/glow_integration.rs @@ -652,8 +652,6 @@ impl GlowWinitRunning { let gl_surface = viewport.gl_surface.as_ref().unwrap(); let egui_winit = viewport.egui_winit.as_mut().unwrap(); - egui_winit.handle_platform_output(&window, platform_output); - let clipped_primitives = integration.egui_ctx.tessellate(shapes, pixels_per_point); { @@ -734,6 +732,8 @@ impl GlowWinitRunning { } } + egui_winit.handle_platform_output(window, &viewport_id, platform_output); + glutin.handle_viewport_output(event_loop, &integration.egui_ctx, &viewport_output); integration.report_frame_time(frame_timer.total_time_sec()); // don't count auto-save time as part of regular frame time @@ -1508,7 +1508,7 @@ fn render_immediate_viewport( } } - egui_winit.handle_platform_output(window, platform_output); + egui_winit.handle_platform_output(window, &viewport_id, platform_output); glutin.handle_viewport_output(event_loop, egui_ctx, &viewport_output); }