Skip to content

Commit

Permalink
Merge pull request #8265 from AvaloniaUI/fixes/osx-invalidate-shadow-…
Browse files Browse the repository at this point in the history
…always

whenever we become key... dispatch invalidateShadow
  • Loading branch information
danwalmsley authored Jun 3, 2022
2 parents 47a66d9 + e5a3820 commit d823e84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions native/Avalonia.Native/src/OSX/AvnWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ -(void)becomeKeyWindow
- (void)windowDidBecomeKey:(NSNotification *_Nonnull)notification
{
_parent->BringToFront();

dispatch_async(dispatch_get_main_queue(), ^{
@try {
[self invalidateShadow];
}
@finally{
}
});
}

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

0 comments on commit d823e84

Please sign in to comment.