diff options
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r-- | pugl/detail/x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 58451e9..5fc769d 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -749,7 +749,9 @@ flushExposures(PuglWorld* world) PuglEvent* const configure = &view->impl->pendingConfigure; PuglEvent* const expose = &view->impl->pendingExpose; - puglDispatchSimpleEvent(view, PUGL_UPDATE); + if (view->visible) { + puglDispatchSimpleEvent(view, PUGL_UPDATE); + } if (configure->type || expose->type) { view->backend->enter(view, expose->type ? &expose->expose : NULL); |