aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_show_hide.c2
-rw-r--r--test/test_update.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index 2294709..b624735 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -75,7 +75,7 @@ onEvent(PuglView* view, const PuglEvent* event)
test->state = EXPOSED;
break;
case PUGL_UNMAP:
- assert(test->state == EXPOSED);
+ assert(test->state == MAPPED || test->state == EXPOSED);
test->state = UNMAPPED;
break;
case PUGL_DESTROY:
diff --git a/test/test_update.c b/test/test_update.c
index d9c02ab..39415bc 100644
--- a/test/test_update.c
+++ b/test/test_update.c
@@ -75,8 +75,8 @@ onEvent(PuglView* view, const PuglEvent* event)
case PUGL_UPDATE:
if (test->state == EXPOSED1) {
- puglPostRedisplay(view);
test->state = UPDATED;
+ puglPostRedisplay(view);
}
break;