macOS: skip releasing unavailable monitors

Prevent assertion error when trying to close a fullscreen window that
was on a display that got disconnected.
This commit is contained in:
Pascal Hertleif
2024-08-05 12:44:18 +02:00
committed by Kirill Chibisov
parent 77e8fe6094
commit f3d1f922f9
2 changed files with 18 additions and 14 deletions

View File

@@ -49,3 +49,4 @@ changelog entry.
- On MacOS, fix building with `feature = "rwh_04"`.
- On Web, pen events are now routed through to `WindowEvent::Cursor*`.
- On macOS, fix panic when releasing not available monitor.