aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_show_hide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index cc2c972..a0341c1 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -71,7 +71,7 @@ onEvent(PuglView* view, const PuglEvent* event)
test->state = MAPPED;
break;
case PUGL_EXPOSE:
- assert(test->state == MAPPED);
+ assert(test->state == MAPPED || test->state == EXPOSED);
test->state = EXPOSED;
break;
case PUGL_UNMAP: