aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pugl/pugl_x11.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 43a1b26..8167ece 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -545,11 +545,14 @@ puglProcessEvents(PuglView* view)
cairo_xlib_surface_set_size(view->impl->surface,
event.configure.width,
event.configure.height);
+ view->redisplay = true;
}
#endif
// Dispatch event to application
- puglDispatchEvent(view, &event);
+ if (!(view->redisplay && event.type == PUGL_EXPOSE)) {
+ puglDispatchEvent(view, &event);
+ }
}
if (view->redisplay) {