From f3acb6e7d8fb41b8fc23f916787b78a74afff776 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 1 Feb 2023 16:31:57 +0100 Subject: [PATCH] Merge pull request #10153 from AvaloniaUI/fixes/macos-windowstate-crash macOS: Sync actual window state after window show, and fix integration tests on macOS 13.1 --- native/Avalonia.Native/src/OSX/WindowImpl.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/Avalonia.Native/src/OSX/WindowImpl.mm b/native/Avalonia.Native/src/OSX/WindowImpl.mm index 38a2c8c5226..fc12b3b2f1c 100644 --- a/native/Avalonia.Native/src/OSX/WindowImpl.mm +++ b/native/Avalonia.Native/src/OSX/WindowImpl.mm @@ -65,7 +65,7 @@ _isModal = isDialog; WindowBaseImpl::Show(activate, isDialog); - + GetWindowState(&_actualWindowState); HideOrShowTrafficLights(); return SetWindowState(_lastWindowState);