macOS: Make set_simple_fullscreen honor set_borderless_game (#4164)

* Prevent panic when calling set_simple_fullscreen(false) on macos

Calling `set_simple_fullscreen(false)` to restore the window after
a previous call to `set_simple_fullscreen(true)` panics with
`view must be installed in a window` in the call to `set_style_mask`
with the old style.

Moving the `set_style_mask` call after the frame has been resized
fixes the issue.

* Hide the doc and menubar on macos when using set_borderless_game
with set_simple_fullscreen
This commit is contained in:
aloucks
2025-03-16 21:58:47 -04:00
committed by Kirill Chibisov
parent ec7677d692
commit c591089ece
3 changed files with 13 additions and 8 deletions

View File

@@ -47,3 +47,4 @@ changelog entry.
### Fixed
- On Windows, fixed ~500 ms pause when clicking the title bar during continuous redraw.
- On macos, `WindowExtMacOS::set_simple_fullscreen` now honors `WindowExtMacOS::set_borderless_game`