aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-27 13:05:04 -0500
committerDavid Robillard <d@drobilla.net>2022-12-27 13:05:04 -0500
commitef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4 (patch)
tree3c6db56018d5f654a73ff9278ab3481c73c17457 /src/win.c
parent616dfbbea24601175a6b378ae1ec1c62a901e377 (diff)
downloadpugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.tar.gz
pugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.tar.bz2
pugl-ef19bb7e8f170db9fcd32b89b413c9b0a8f6d8c4.zip
Set transient parent when views are realized if necessary
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win.c b/src/win.c
index 639f200..34ad4c3 100644
--- a/src/win.c
+++ b/src/win.c
@@ -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);