diff options
author | David Robillard <d@drobilla.net> | 2022-12-27 13:05:04 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-27 13:05:04 -0500 |
commit | ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4 (patch) | |
tree | 3c6db56018d5f654a73ff9278ab3481c73c17457 /src | |
parent | 616dfbbea24601175a6b378ae1ec1c62a901e377 (diff) | |
download | pugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.tar.gz pugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.tar.bz2 pugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.zip |
Set transient parent when views are realized if necessary
Diffstat (limited to 'src')
-rw-r--r-- | src/mac.m | 3 | ||||
-rw-r--r-- | src/win.c | 4 | ||||
-rw-r--r-- | src/x11.c | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -1162,6 +1162,9 @@ puglRealize(PuglView* view) updateSizeHints(view); puglSetFrame(view, view->frame); + if (view->transientParent) { + puglSetTransientParent(view, view->transientParent); + } [window setContentView:impl->wrapperView]; [view->world->impl->app activateIgnoringOtherApps:YES]; @@ -256,6 +256,10 @@ puglRealize(PuglView* view) puglSetWindowTitle(view, view->title); } + if (view->transientParent) { + puglSetTransientParent(view, view->transientParent); + } + view->impl->scaleFactor = puglWinGetViewScaleFactor(view); view->impl->cursor = LoadCursor(NULL, IDC_ARROW); @@ -457,7 +457,7 @@ puglRealize(PuglView* const view) } if (view->transientParent) { - XSetTransientForHint(display, impl->win, (Window)view->transientParent); + puglSetTransientParent(view, view->transientParent); } // Create input context |