diff options
author | David Robillard <d@drobilla.net> | 2020-04-06 15:50:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-06 16:52:08 +0200 |
commit | 53d8fe0c19408a54165f6422319be8139758a5b2 (patch) | |
tree | 073eedb86a7b1bdbacfce9fd4ebed335781882ab /examples | |
parent | 20fd80c8f20d0d6bda660bd9a273e0c4a78cb9ac (diff) | |
download | pugl-53d8fe0c19408a54165f6422319be8139758a5b2.tar.gz pugl-53d8fe0c19408a54165f6422319be8139758a5b2.tar.bz2 pugl-53d8fe0c19408a54165f6422319be8139758a5b2.zip |
Implement puglSetTransientFor() for Mac and Windows
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pugl_window_demo.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c index 183119c..3a0dc51 100644 --- a/examples/pugl_window_demo.c +++ b/examples/pugl_window_demo.c @@ -203,10 +203,10 @@ main(int argc, char** argv) CubeView* cube = &app.cubes[i]; PuglView* view = cube->view; static const double pad = 64.0; - const PuglRect frame = {pad + (256.0 + pad) * i, - pad + (256.0 + pad) * i, - 256.0, - 256.0}; + const PuglRect frame = {pad + (128.0 + pad) * i, + pad + (128.0 + pad) * i, + 512.0, + 512.0}; cube->dist = 10; @@ -224,6 +224,11 @@ main(int argc, char** argv) puglSetHandle(view, cube); puglSetEventFunc(view, onEvent); + if (i == 1) { + puglSetTransientFor(app.cubes[1].view, + puglGetNativeWindow(app.cubes[0].view)); + } + if ((st = puglRealize(view))) { return logError("Failed to create window (%s)\n", puglStrerror(st)); } |