From 05bf0e124a76425ea9aa9cbd6464ad3e0586110d Mon Sep 17 00:00:00 2001 From: Konkitoman Date: Sat, 5 Aug 2023 17:46:54 +0300 Subject: [PATCH] viewport_sync now processes platform output for GlowWinitApp --- crates/eframe/src/native/run.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index c73ed5db9..d1a89d978 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -1038,6 +1038,11 @@ mod glow_integration { "failed to get current context to swap buffers", ), ); + winit_state.handle_platform_output( + &win, + &egui_ctx, + output.platform_output, + ); } else { break 'try_render; } @@ -1048,7 +1053,7 @@ mod glow_integration { Self::process_viewport_builders(glutin.clone(), output.viewports); egui_winit::process_viewport_commands( output.viewport_commands, - focused.read().clone(), + *focused.read(), |id| { glutin .read()