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 09087b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions native/Avalonia.Native/src/OSX/WindowImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,17 @@

case SystemDecorationsFull:
s = s | NSWindowStyleMaskTitled | NSWindowStyleMaskClosable;

if ((_canResize && _isEnabled) || _transitioningWindowState) {
s = s | NSWindowStyleMaskResizable;
s = s | NSWindowStyleMaskResizable;
}
break;
}

// if ((_canResize && _isEnabled) || _transitioningWindowState) {
// s = s | NSWindowStyleMaskResizable;
// }


if (!IsOwned()) {
s |= NSWindowStyleMaskMiniaturizable;
}
Expand Down

0 comments on commit 09087b9

Please sign in to comment.