Skip to content

Commit

Permalink
Make show/hide test tolerant to multiple exposures
Browse files Browse the repository at this point in the history
This happens on MacOS.
  • Loading branch information
drobilla committed May 16, 2020
1 parent 6e42e48 commit 8fffa8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_show_hide.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8fffa8f

Please sign in to comment.