fix: handle failing to enter fullscreen on macOS (#43152)
* 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. Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com> * refactor: remove fail to exit fullscreen handlers Seem to be unnecessary since the window exits fullscreen anyway. Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com>
This commit is contained in:
parent
54c8036c71
commit
341ed10854
3 changed files with 20 additions and 0 deletions
|
@ -1665,6 +1665,13 @@ void NativeWindowMac::NotifyWindowWillEnterFullScreen() {
|
|||
UpdateVibrancyRadii(true);
|
||||
}
|
||||
|
||||
void NativeWindowMac::NotifyWindowDidFailToEnterFullScreen() {
|
||||
UpdateVibrancyRadii(false);
|
||||
|
||||
if (buttons_proxy_)
|
||||
[buttons_proxy_ redraw];
|
||||
}
|
||||
|
||||
void NativeWindowMac::NotifyWindowWillLeaveFullScreen() {
|
||||
if (buttons_proxy_) {
|
||||
// Hide window title when leaving fullscreen.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue