Skip to content

Commit 603f543

Browse files
committed
osx: fix crash when modal dialog is opened over fullscreen parent.
1 parent d19ee54 commit 603f543

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

native/Avalonia.Native/src/OSX/WindowImpl.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@
563563

564564
NSWindowStyleMask WindowImpl::GetStyle() {
565565
unsigned long s = NSWindowStyleMaskBorderless;
566+
567+
if(_actualWindowState == FullScreen)
568+
{
569+
s |= NSWindowStyleMaskFullScreen;
570+
}
566571

567572
switch (_decorations) {
568573
case SystemDecorationsNone:

0 commit comments

Comments
 (0)