# 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 |
||
|---|---|---|
| .. | ||
| accessibility.rs | ||
| converters.rs | ||
| lib.rs | ||
| state.rs | ||
| system.rs | ||
| winit_config.rs | ||
| winit_event.rs | ||
| winit_windows.rs | ||