Skip to content

Commit

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

whenever we become key... dispatch invalidateShadow
  • Loading branch information
danwalmsley committed Jun 3, 2022
1 parent 6375103 commit 5d360fa
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 @@ -283,6 +283,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 5d360fa

Please sign in to comment.