From cec9bc333d9d7b97905ec660d131c7c40f637366 Mon Sep 17 00:00:00 2001 From: Bartosz Korczynski Date: Sat, 26 Oct 2024 13:45:28 +0100 Subject: [PATCH] Fix: respect CanResize on macOS regardless of SystemDecorations --- native/Avalonia.Native/src/OSX/WindowImpl.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/native/Avalonia.Native/src/OSX/WindowImpl.mm b/native/Avalonia.Native/src/OSX/WindowImpl.mm index 42ac37ae8cc0..00aa40a8d2d4 100644 --- a/native/Avalonia.Native/src/OSX/WindowImpl.mm +++ b/native/Avalonia.Native/src/OSX/WindowImpl.mm @@ -570,13 +570,13 @@ case SystemDecorationsFull: s = s | NSWindowStyleMaskTitled | NSWindowStyleMaskClosable; - - if ((_canResize && _isEnabled) || _transitioningWindowState) { - s = s | NSWindowStyleMaskResizable; - } break; } + if ((_canResize && _isEnabled) || _transitioningWindowState) { + s = s | NSWindowStyleMaskResizable; + } + if (!IsOwned()) { s |= NSWindowStyleMaskMiniaturizable; }