From 2071ef9cd56b3f9cec89d05f36d1fb1082ae2bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 16 Oct 2025 18:46:29 +0200 Subject: [PATCH] Use `Proxy` directly instead of `Runtime::run` --- winit/src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/winit/src/lib.rs b/winit/src/lib.rs index 006b6609..7df52e8d 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -882,12 +882,7 @@ async fn run_instance

( // Defer all window actions to avoid compositor // race conditions while redrawing if let Action::Window(_) = action { - runtime.run( - futures::futures::stream::once( - async move { action }, - ) - .boxed(), - ); + proxy.send_action(action); continue; }