-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinitSettings::desktop_app()
causes App to keep running after closing window
#7624
Comments
bevy/crates/bevy_window/src/lib.rs Lines 95 to 107 in 3999365
bevy/crates/bevy_window/src/lib.rs Lines 94 to 106 in 206c7ce
|
Yes please, that seems like a good simple fix to try. |
# Objective - `close_when_requested` system needs to run before `exit_on_*` systems, otherwise it takes another loop to exit app. - Fixes #7624 ## Solution - Move `close_when_request` system to Update phase [as before](#7624 (comment)).
…7628) # Objective - `close_when_requested` system needs to run before `exit_on_*` systems, otherwise it takes another loop to exit app. - Fixes bevyengine#7624 ## Solution - Move `close_when_request` system to Update phase [as before](bevyengine#7624 (comment)).
…7628) # Objective - `close_when_requested` system needs to run before `exit_on_*` systems, otherwise it takes another loop to exit app. - Fixes bevyengine#7624 ## Solution - Move `close_when_request` system to Update phase [as before](bevyengine#7624 (comment)).
Bevy version
master (de98850a)
What you did
Ran this code and tried closing window.
What went wrong
App does not exit immediately after window closing. It takes 60 seconds to exit in the end, probably for
unfocused_mode.max_wait
.The problem disappears when removing
WinitSettings::desktop_app()
.The text was updated successfully, but these errors were encountered: