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
parent
commit
38283337f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      native/Avalonia.Native/src/OSX/WindowImpl.mm

5
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:

Loading…
Cancel
Save