-
-
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
Regreesion: bevy:: window ::close_on_esc doesn't work correctly #7612
Labels
A-Rendering
Drawing game state to the screen
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
Milestone
Comments
ameknite
added
C-Bug
An unexpected or incorrect behavior
S-Needs-Triage
This issue needs to be labelled
labels
Feb 10, 2023
ameknite
changed the title
Regreesion: bevy::window::close_on_esc doesn't work correctly
Regreesion: bevy:: window ::close_on_esc doesn't work correctly
Feb 10, 2023
I'm on macOS too, and I get two focus event for the window on startup, one true then one false. Could someone try to reproduce on another platform? |
alice-i-cecile
added
A-Rendering
Drawing game state to the screen
A-Windowing
Platform-agnostic interface layer to run your app in
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Feb 11, 2023
was this fixed by #7628? |
no, windows still start as unfocused |
myreprise1
pushed a commit
to myreprise1/bevy
that referenced
this issue
Feb 15, 2023
# Objective - Fixes bevyengine#7612 - Since bevyengine#7493, windows started as unfocused ## Solution - Creating the window at the end of the event loop after the resume event instead of at the beginning of the loop of the next event fixes the focus
myreprise1
pushed a commit
to myreprise1/bevy
that referenced
this issue
Feb 15, 2023
# Objective - Fixes bevyengine#7612 - Since bevyengine#7493, windows started as unfocused ## Solution - Creating the window at the end of the event loop after the resume event instead of at the beginning of the loop of the next event fixes the focus
myreprise1
pushed a commit
to myreprise1/bevy
that referenced
this issue
Feb 15, 2023
# Objective - Fixes bevyengine#7612 - Since bevyengine#7493, windows started as unfocused ## Solution - Creating the window at the end of the event loop after the resume event instead of at the beginning of the loop of the next event fixes the focus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Rendering
Drawing game state to the screen
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
Bevy version
Main
Commit: 9ef840e
Relevant system information
What you did
I was looking at the new examples and I came across this system:
bevy::window::close_on_esc
What went wrong
It doesn't close the window when I press Esc.
I have to click outside the window and back inside the window and it works.
Additional information
focus.focused
it says false, it doesn't seem to detect focus the first time I run the program.The text was updated successfully, but these errors were encountered: