From 5d13701f3e8b7aa55bbaa347be30022f4da1c936 Mon Sep 17 00:00:00 2001 From: Stefan Westerfeld Date: Sun, 23 Jun 2019 17:36:21 +0200 Subject: Fix window embedding on MacOS --- pugl/pugl_osx.m | 4 ++-- 1 file 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 { -- cgit v1.2.1