aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Westerfeld <stefan@space.twc.de>2019-06-23 17:36:21 +0200
committerDavid Robillard <d@drobilla.net>2019-06-27 19:42:16 +0200
commit5d13701f3e8b7aa55bbaa347be30022f4da1c936 (patch)
tree45bdcf0e61793129c9678c3759f5d745319a3dd3
parenta978fd6a78baeb920e676cfef0d96877778c80ab (diff)
downloadpugl-5d13701f3e8b7aa55bbaa347be30022f4da1c936.tar.gz
pugl-5d13701f3e8b7aa55bbaa347be30022f4da1c936.tar.bz2
pugl-5d13701f3e8b7aa55bbaa347be30022f4da1c936.zip
Fix window embedding on MacOS
-rw-r--r--pugl/pugl_osx.m4
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 {