diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cairo.c | 2 | ||||
-rw-r--r-- | test/test_gl.c | 2 | ||||
-rw-r--r-- | test/test_local_copy_paste.c | 2 | ||||
-rw-r--r-- | test/test_redisplay.c | 2 | ||||
-rw-r--r-- | test/test_remote_copy_paste.c | 4 | ||||
-rw-r--r-- | test/test_show_hide.c | 2 | ||||
-rw-r--r-- | test/test_size.c | 2 | ||||
-rw-r--r-- | test/test_stub.c | 2 | ||||
-rw-r--r-- | test/test_timer.c | 2 | ||||
-rw-r--r-- | test/test_update.c | 2 | ||||
-rw-r--r-- | test/test_view.c | 2 | ||||
-rw-r--r-- | test/test_vulkan.c | 2 |
12 files changed, 13 insertions, 13 deletions
diff --git a/test/test_cairo.c b/test/test_cairo.c index a9a36db..e2d0089 100644 --- a/test/test_cairo.c +++ b/test/test_cairo.c @@ -66,7 +66,7 @@ main(int argc, char** argv) puglSetBackend(test.view, puglCairoBackend()); puglSetEventFunc(test.view, onEvent); puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512); - puglShow(test.view); + puglShow(test.view, PUGL_SHOW_PASSIVE); // Drive event loop until the view gets exposed while (!test.exposed) { diff --git a/test/test_gl.c b/test/test_gl.c index da84c1a..bf9b02a 100644 --- a/test/test_gl.c +++ b/test/test_gl.c @@ -85,7 +85,7 @@ main(int argc, char** argv) puglSetBackend(test.view, puglGlBackend()); puglSetEventFunc(test.view, onEvent); puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512); - puglShow(test.view); + puglShow(test.view, PUGL_SHOW_PASSIVE); // Enter OpenGL context as if setting things up puglEnterContext(test.view); diff --git a/test/test_local_copy_paste.c b/test/test_local_copy_paste.c index 9f99a09..14614ab 100644 --- a/test/test_local_copy_paste.c +++ b/test/test_local_copy_paste.c @@ -136,7 +136,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(app.view)); - assert(!puglShow(app.view)); + assert(!puglShow(app.view, PUGL_SHOW_PASSIVE)); // Run until the test is finished while (app.state != FINISHED) { diff --git a/test/test_redisplay.c b/test/test_redisplay.c index afe89dc..7a98720 100644 --- a/test/test_redisplay.c +++ b/test/test_redisplay.c @@ -117,7 +117,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view)); + assert(!puglShow(test.view, PUGL_SHOW_PASSIVE)); while (test.state != EXPOSED) { assert(!puglUpdate(test.world, timeout)); } diff --git a/test/test_remote_copy_paste.c b/test/test_remote_copy_paste.c index 828992d..0abcb73 100644 --- a/test/test_remote_copy_paste.c +++ b/test/test_remote_copy_paste.c @@ -161,8 +161,8 @@ main(int argc, char** argv) puglSetPosition(app.pasterView, 512, 512); // Create and show both views - assert(!puglShow(app.copierView)); - assert(!puglShow(app.pasterView)); + assert(!puglShow(app.copierView, PUGL_SHOW_PASSIVE)); + assert(!puglShow(app.pasterView, PUGL_SHOW_PASSIVE)); // Run until the test is finished while (app.state != FINISHED) { diff --git a/test/test_show_hide.c b/test/test_show_hide.c index 6664a1e..4418da3 100644 --- a/test/test_show_hide.c +++ b/test/test_show_hide.c @@ -86,7 +86,7 @@ showHide(PuglTest* const test) { // Show and hide window a couple of times for (unsigned i = 0U; i < 2U; ++i) { - assert(!puglShow(test->view)); + assert(!puglShow(test->view, PUGL_SHOW_PASSIVE)); while (test->state != EXPOSED) { tick(test->world); } diff --git a/test/test_size.c b/test/test_size.c index f19deb9..9eaf3ca 100644 --- a/test/test_size.c +++ b/test/test_size.c @@ -91,7 +91,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view)); + assert(!puglShow(test.view, PUGL_SHOW_PASSIVE)); while (test.state < CONFIGURED) { assert(!puglUpdate(test.world, -1.0)); } diff --git a/test/test_stub.c b/test/test_stub.c index 8ab2c15..06abeb4 100644 --- a/test/test_stub.c +++ b/test/test_stub.c @@ -52,7 +52,7 @@ main(int argc, char** argv) puglSetBackend(test.view, puglStubBackend()); puglSetEventFunc(test.view, onEvent); puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512); - puglShow(test.view); + puglShow(test.view, PUGL_SHOW_PASSIVE); // Drive event loop until the view gets exposed while (!test.exposed) { diff --git a/test/test_timer.c b/test/test_timer.c index 34223c9..cda5be9 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -115,7 +115,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view)); + assert(!puglShow(test.view, PUGL_SHOW_RAISE)); while (test.state != EXPOSED) { assert(!puglUpdate(test.world, timeout)); } diff --git a/test/test_update.c b/test/test_update.c index 381e34b..ff58ed2 100644 --- a/test/test_update.c +++ b/test/test_update.c @@ -93,7 +93,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view)); + assert(!puglShow(test.view, PUGL_SHOW_PASSIVE)); // Tick until an expose happens while (test.state < EXPOSED1) { diff --git a/test/test_view.c b/test/test_view.c index eeedc96..6b3624c 100644 --- a/test/test_view.c +++ b/test/test_view.c @@ -75,7 +75,7 @@ main(int argc, char** argv) // Create and show window assert(!puglRealize(test.view)); - assert(!puglShow(test.view)); + assert(!puglShow(test.view, PUGL_SHOW_PASSIVE)); while (test.state < CONFIGURED) { assert(!puglUpdate(test.world, -1.0)); } diff --git a/test/test_vulkan.c b/test/test_vulkan.c index 77921b4..ae940a2 100644 --- a/test/test_vulkan.c +++ b/test/test_vulkan.c @@ -186,7 +186,7 @@ main(int argc, char** argv) assert(puglGetDeviceProcAddrFunc(loader)); // Show view and drive event loop until the view gets exposed - puglShow(test.view); + puglShow(test.view, PUGL_SHOW_PASSIVE); while (!test.exposed) { puglUpdate(test.world, -1.0); } |