diff options
Diffstat (limited to 'examples/pugl_window_demo.c')
-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)); } |