diff options
author | David Robillard <d@drobilla.net> | 2022-12-27 13:04:39 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-27 13:04:39 -0500 |
commit | 616dfbbea24601175a6b378ae1ec1c62a901e377 (patch) | |
tree | 9a83152e3d543d3a2fe1cde7b87290b8f65f3b0a | |
parent | d5efee77f8daf572602a9925e34c96698a1dcbdf (diff) | |
download | pugl-616dfbbea24601175a6b378ae1ec1c62a901e377.tar.gz pugl-616dfbbea24601175a6b378ae1ec1c62a901e377.tar.bz2 pugl-616dfbbea24601175a6b378ae1ec1c62a901e377.zip |
Fail to set transient parent of views with a parent window
-rw-r--r-- | src/mac.m | 4 | ||||
-rw-r--r-- | src/x11.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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) { @@ -1656,6 +1656,10 @@ puglSetTransientParent(PuglView* const view, const PuglNativeView parent) { Display* display = view->world->impl->display; + if (view->parent) { + return PUGL_FAILURE; + } + view->transientParent = parent; if (view->impl->win) { |