fix: handle failing to enter fullscreen on macOS (#43112)

* fix: handle failing to enter/exit fullscreen on macOS

On macOS, failing to enter/exit fullscreen can fail. If this happens,
properly restore the original window state.

* refactor: remove fail to exit fullscreen handlers

Seem to be unnecessary since the window exits fullscreen anyway.
This commit is contained in:
cptpcrd 2024-08-01 06:13:13 -04:00 committed by GitHub
parent 45e5ccc55e
commit 2337d8676d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 0 deletions

View file

@ -167,6 +167,7 @@ class NativeWindowMac : public NativeWindow,
void DetachChildren() override;
void NotifyWindowWillEnterFullScreen();
void NotifyWindowDidFailToEnterFullScreen();
void NotifyWindowWillLeaveFullScreen();
// Cleanup observers when window is getting closed. Note that the destructor