Skip to content

Commit

Permalink
Merge pull request #9301 from AvaloniaUI/fixes/osx-menu-re-entrancy-c…
Browse files Browse the repository at this point in the history
…rash-backport

backport: osx re-entrancy fix.
  • Loading branch information
maxkatz6 authored Oct 30, 2022
2 parents 3b8782c + 30cc4de commit af1c316
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native/Avalonia.Native/src/OSX/AvnWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -385,16 +385,14 @@ - (BOOL)windowShouldZoom:(NSWindow *_Nonnull)window toFrame:(NSRect)newFrame
return true;
}

-(void)resignKeyWindow
-(void)windowDidResignKey:(NSNotification *)notification
{
if(_parent)
_parent->BaseEvents->Deactivated();

[self showAppMenuOnly];

[self invalidateShadow];

[super resignKeyWindow];
}

- (void)windowDidMove:(NSNotification *_Nonnull)notification
Expand Down

0 comments on commit af1c316

Please sign in to comment.