Browse Source
Don't crash when a misbehaving app calls Show on a closed/closing window on macOS (#16341)
yolo merging coz of integration tests being flaky, with @grokys 's approval
pull/16354/head
Jumar Macato
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
src/Avalonia.Native/WindowImpl.cs
|
|
@ -6,6 +6,7 @@ using Avalonia.Input.Raw; |
|
|
using Avalonia.Input.TextInput; |
|
|
using Avalonia.Input.TextInput; |
|
|
using Avalonia.Native.Interop; |
|
|
using Avalonia.Native.Interop; |
|
|
using Avalonia.Platform; |
|
|
using Avalonia.Platform; |
|
|
|
|
|
using MicroCom.Runtime; |
|
|
|
|
|
|
|
|
namespace Avalonia.Native |
|
|
namespace Avalonia.Native |
|
|
{ |
|
|
{ |
|
|
@ -156,6 +157,9 @@ namespace Avalonia.Native |
|
|
|
|
|
|
|
|
private void InvalidateExtendedMargins() |
|
|
private void InvalidateExtendedMargins() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if(_native is MicroComProxyBase pb && pb.IsDisposed) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
if (WindowState == WindowState.FullScreen) |
|
|
if (WindowState == WindowState.FullScreen) |
|
|
{ |
|
|
{ |
|
|
ExtendedMargins = new Thickness(); |
|
|
ExtendedMargins = new Thickness(); |
|
|
|