bevy/crates/bevy_winit
François Mockers 519abbca11
make sure windows are dropped on main thread (#13686)
# Objective

- On macOS, closing a window by respawning its entity freezes

## Solution

- `WindowWrapper` is keeping an `Arc` of the window, to be able to
access it from the rendering thread. Winit windows are closed when they
are dropped. This need to happen on the main thread on macOS
- Dropping it as soon as the window is closed means the last remaining
`Arc` will be in the rendering thread
- This PR keeps the `Arc` for one frame in the rendering thread before
actually dropping it
2024-06-05 18:13:59 +00:00
..
src make sure windows are dropped on main thread (#13686) 2024-06-05 18:13:59 +00:00
Cargo.toml fix: upgrade to winit v0.30 (#13366) 2024-06-03 13:06:48 +00:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Winit

License Crates.io Downloads Docs Discord