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 27, 2024
1 parent 0944e04 commit a92a773
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 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,14 @@

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 a92a773

Please sign in to comment.