aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-27 13:04:39 -0500
committerDavid Robillard <d@drobilla.net>2022-12-27 13:04:39 -0500
commit616dfbbea24601175a6b378ae1ec1c62a901e377 (patch)
tree9a83152e3d543d3a2fe1cde7b87290b8f65f3b0a /src/mac.m
parentd5efee77f8daf572602a9925e34c96698a1dcbdf (diff)
downloadpugl-616dfbbea24601175a6b378ae1ec1c62a901e377.tar.gz
pugl-616dfbbea24601175a6b378ae1ec1c62a901e377.tar.bz2
pugl-616dfbbea24601175a6b378ae1ec1c62a901e377.zip
Fail to set transient parent of views with a parent window
Diffstat (limited to 'src/mac.m')
-rw-r--r--src/mac.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mac.m b/src/mac.m
index 72b3e5f..186e612 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1562,6 +1562,10 @@ puglSetSizeHint(PuglView* const view,
PuglStatus
puglSetTransientParent(PuglView* view, PuglNativeView parent)
{
+ if (view->parent) {
+ return PUGL_FAILURE;
+ }
+
view->transientParent = parent;
if (view->impl->window) {