Skip to content

Commit

Permalink
Update wgpu_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Mar 3, 2024
1 parent e035928 commit 80647ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/eframe/src/native/wgpu_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ impl WgpuWinitRunning {
}

if integration.should_close() {
EventResult::Exit
EventResult::Exit(window_id)
} else {
EventResult::Wait
}
Expand Down Expand Up @@ -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:?}");
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 80647ed

Please sign in to comment.