Browse Source
Merge pull request #8250 from AvaloniaUI/fixes/osx-modal-over-fullscreen-mode-window
osx: fix crash when modal dialog is opened over fullscreen parent.
pull/8252/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
5 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/WindowImpl.mm
|
|
|
@ -564,6 +564,11 @@ bool WindowImpl::IsDialog() { |
|
|
|
|
|
|
|
NSWindowStyleMask WindowImpl::GetStyle() { |
|
|
|
unsigned long s = NSWindowStyleMaskBorderless; |
|
|
|
|
|
|
|
if(_actualWindowState == FullScreen) |
|
|
|
{ |
|
|
|
s |= NSWindowStyleMaskFullScreen; |
|
|
|
} |
|
|
|
|
|
|
|
switch (_decorations) { |
|
|
|
case SystemDecorationsNone: |
|
|
|
|