diff options
Diffstat (limited to 'glutin')
-rw-r--r-- | glutin/Cargo.toml | 8 | ||||
-rw-r--r-- | glutin/src/application.rs | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index 730ee6f7..022457b1 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glutin" -version = "0.4.0" +version = "0.5.0" authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] edition = "2021" description = "A glutin runtime for Iced" @@ -23,15 +23,15 @@ git = "https://github.com/iced-rs/glutin" rev = "da8d291486b4c9bec12487a46c119c4b1d386abf" [dependencies.iced_native] -version = "0.6" +version = "0.7" path = "../native" [dependencies.iced_winit] -version = "0.5" +version = "0.6" path = "../winit" features = ["application"] [dependencies.iced_graphics] -version = "0.4" +version = "0.5" path = "../graphics" features = ["opengl"] 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<A, E, C>( 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<A, E, C>( init_command, &mut runtime, &mut clipboard, + &mut should_exit, &mut proxy, &mut debug, context.window(), @@ -271,6 +273,7 @@ async fn run_instance<A, E, C>( &mut renderer, &mut runtime, &mut clipboard, + &mut should_exit, &mut proxy, &mut debug, &mut messages, @@ -281,8 +284,6 @@ async fn run_instance<A, E, C>( // Update window state.synchronize(&application, context.window()); - let should_exit = application.should_exit(); - user_interface = ManuallyDrop::new(application::build_user_interface( &application, |