Skip to content

Commit bed7827

Browse files
committed
fix(macos): prevent title bar flash on fullscreen exit
- Restore title bar transparency before AppKit begins the exit animation for windows with an extended client area.
1 parent fc5923a commit bed7827

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

native/Avalonia.Native/src/OSX/AvnWindow.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ - (void)windowDidResize:(NSNotification *_Nonnull)notification
348348

349349
- (void)windowWillExitFullScreen:(NSNotification *_Nonnull)notification
350350
{
351+
// Prepare the destination appearance before AppKit starts the exit animation.
352+
if (_isExtended)
353+
[self setTitlebarAppearsTransparent:true];
354+
351355
auto parent = _parent.tryGetWithCast<IWindowStateChanged>();
352356

353357
if(parent != nullptr)

0 commit comments

Comments
 (0)