Skip to content

Commit

Permalink
Don't show titlebar when client area is extended.
Browse files Browse the repository at this point in the history
Fixes first part of #10650.
  • Loading branch information
grokys committed Mar 15, 2023
1 parent d87e7fa commit 7c4b4db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions native/Avalonia.Native/src/OSX/WindowImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,13 @@

case SystemDecorationsFull:
[Window setHasShadow:YES];
[Window setTitleVisibility:NSWindowTitleVisible];
[Window setTitlebarAppearsTransparent:NO];
[Window setTitle:_lastTitle];

if (!_isClientAreaExtended) {
[Window setTitleVisibility:NSWindowTitleVisible];
[Window setTitlebarAppearsTransparent:NO];
}

if (currentWindowState == Maximized) {
auto newFrame = [Window contentRectForFrameRect:[Window frame]].size;

Expand Down

0 comments on commit 7c4b4db

Please sign in to comment.