Skip to content
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

check if window is active before processing #270

Merged
merged 1 commit into from
Jun 14, 2022
Merged

check if window is active before processing #270

merged 1 commit into from
Jun 14, 2022

Conversation

bayou-brogrammer
Copy link
Contributor

Whenever the window is closed, or the close_on_exit system is used, bevy closes all windows then sends the AppExit event to shutdown the application. During that time, the systems still run, like our mouse_update system which causes errors on unwrapping of the current window. This just adds a check to see if the window exist.

This is my first ever PR to another repo so I don't really know how to structure this or if I even did a decent job (rust noob here) so any feedback is welcome!

@thebracket thebracket merged commit 5a0c886 into amethyst:bevy Jun 14, 2022
@thebracket
Copy link
Collaborator

Thank you! I tested it locally and it worked well.

@bayou-brogrammer bayou-brogrammer deleted the check-active-window branch June 14, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants