bevy
bevy copied to clipboard
Add `Windows::get_focused(_mut)`
Add a method to get the focused window.
Use this instead of WindowFocused
events in close_on_esc
.
Seems that the OS/window manager might not always send focused events on application startup.
Sadly, not a fix for #5646.