Browse Source

Merge pull request #8265 from AvaloniaUI/fixes/osx-invalidate-shadow-always

whenever we become key... dispatch invalidateShadow
pull/8267/head
Dan Walmsley 4 years ago
committed by GitHub
parent
commit
d823e84ba3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      native/Avalonia.Native/src/OSX/AvnWindow.mm

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

@ -284,6 +284,14 @@
- (void)windowDidBecomeKey:(NSNotification *_Nonnull)notification
{
_parent->BringToFront();
dispatch_async(dispatch_get_main_queue(), ^{
@try {
[self invalidateShadow];
}
@finally{
}
});
}
- (void)windowDidMiniaturize:(NSNotification *_Nonnull)notification

Loading…
Cancel
Save