From 80647ed833fa2433cb57aa993dd4c72e64b6d0cf Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sun, 3 Mar 2024 23:51:42 +0900 Subject: [PATCH] Update wgpu_integration.rs --- crates/eframe/src/native/wgpu_integration.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/eframe/src/native/wgpu_integration.rs b/crates/eframe/src/native/wgpu_integration.rs index 75f8a9b6052..407825a2e5e 100644 --- a/crates/eframe/src/native/wgpu_integration.rs +++ b/crates/eframe/src/native/wgpu_integration.rs @@ -741,7 +741,7 @@ impl WgpuWinitRunning { } if integration.should_close() { - EventResult::Exit + EventResult::Exit(window_id) } else { EventResult::Wait } @@ -800,7 +800,7 @@ impl WgpuWinitRunning { log::debug!( "Received WindowEvent::CloseRequested for main viewport - shutting down." ); - return EventResult::Exit; + return EventResult::Exit(window_id); } log::debug!("Received WindowEvent::CloseRequested for viewport {viewport_id:?}"); @@ -841,7 +841,7 @@ impl WgpuWinitRunning { .unwrap_or_default(); if integration.should_close() { - EventResult::Exit + EventResult::Exit(window_id) } else if event_response.repaint { EventResult::RepaintNow(window_id) } else {