Skip to content

Commit 59affb9

Browse files
authored
fix(macos): prevent title bar flash on fullscreen exit (#22101)
- Restore title bar transparency before AppKit begins the exit animation for windows with an extended client area.
1 parent bf44e6a commit 59affb9

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)