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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
0 deletions
-
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 |
|
|
|
|