diff options
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index be900f1..02bf46a 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -591,8 +591,8 @@ puglCreateWindow(PuglView* view, const char* title) [impl->glview setAutoresizingMask:NSViewNotSizable]; } - if (view->transient_parent) { - NSView* pview = (NSView*)view->transient_parent; + if (view->parent) { + NSView* pview = (NSView*)view->parent; [pview addSubview:impl->glview]; [impl->glview setHidden:NO]; } else { |