Skip to content

Commit

Permalink
Fix: respect CanResize on macOS regardless of SystemDecorations
Browse files Browse the repository at this point in the history
  • Loading branch information
BAndysc committed Oct 26, 2024
1 parent 0944e04 commit cec9bc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native/Avalonia.Native/src/OSX/WindowImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cec9bc3

Please sign in to comment.