From b5ab50b2a8a869d8d433d9e13878c1cf1d721414 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 15 Dec 2022 03:06:04 +0100 Subject: Implement `window::close` action and remove `should_exit` --- glutin/src/application.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'glutin/src/application.rs') diff --git a/glutin/src/application.rs b/glutin/src/application.rs index f474cbba..3e9d11f9 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -200,6 +200,7 @@ async fn run_instance( let mut cache = user_interface::Cache::default(); let mut state = application::State::new(&application, context.window()); let mut viewport_version = state.viewport_version(); + let mut should_exit = false; application::run_command( &application, @@ -209,6 +210,7 @@ async fn run_instance( init_command, &mut runtime, &mut clipboard, + &mut should_exit, &mut proxy, &mut debug, context.window(), @@ -271,6 +273,7 @@ async fn run_instance( &mut renderer, &mut runtime, &mut clipboard, + &mut should_exit, &mut proxy, &mut debug, &mut messages, @@ -281,8 +284,6 @@ async fn run_instance( // Update window state.synchronize(&application, context.window()); - let should_exit = application.should_exit(); - user_interface = ManuallyDrop::new(application::build_user_interface( &application, -- cgit