aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/pugl_window_demo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pugl_window_demo.c b/examples/pugl_window_demo.c
index 248d44e..175d782 100644
--- a/examples/pugl_window_demo.c
+++ b/examples/pugl_window_demo.c
@@ -129,7 +129,9 @@ onEvent(PuglView* view, const PuglEvent* event)
reshapeCube((int)event->configure.width, (int)event->configure.height);
break;
case PUGL_UPDATE:
- puglPostRedisplay(view);
+ if (app->continuous) {
+ puglPostRedisplay(view);
+ }
break;
case PUGL_EXPOSE:
onDisplay(view);