Browse Source

remove isChild flag.

pull/3943/head
Dan Walmsley 6 years ago
parent
commit
84fafd6547
  1. 5
      native/Avalonia.Native/src/OSX/window.mm

5
native/Avalonia.Native/src/OSX/window.mm

@ -29,7 +29,6 @@ public:
NSString* _lastTitle;
IAvnMenu* _mainMenu;
bool _shown;
bool _isChild;
WindowBaseImpl(IAvnWindowBaseEvents* events, IAvnGlContext* gl)
{
@ -37,7 +36,6 @@ public:
_mainMenu = nullptr;
BaseEvents = events;
_glContext = gl;
_isChild = false;
renderTarget = [[IOSurfaceRenderTarget alloc] initWithOpenGlContext: gl];
View = [[AvnView alloc] initWithParent:this];
@ -528,7 +526,6 @@ private:
if(cparent == nullptr)
return E_INVALIDARG;
_isChild = true;
[cparent->Window addChildWindow:Window ordered:NSWindowAbove];
UpdateStyle();
@ -904,7 +901,7 @@ protected:
break;
}
if(!_isChild)
if([Window parentWindow] == nullptr)
{
s |= NSWindowStyleMaskMiniaturizable;
}

Loading…
Cancel
Save