diff options
Diffstat (limited to 'include/pugl/detail')
-rw-r--r-- | include/pugl/detail/implementation.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/pugl/detail/implementation.c b/include/pugl/detail/implementation.c index f15b856..4f0776a 100644 --- a/include/pugl/detail/implementation.c +++ b/include/pugl/detail/implementation.c @@ -418,6 +418,10 @@ puglDispatchEventInContext(PuglView* view, const PuglEvent* event) view->eventFunc(view, event); view->lastConfigure = event->configure; } + } else if (event->type == PUGL_EXPOSE) { + if (event->expose.width > 0 && event->expose.height > 0) { + view->eventFunc(view, event); + } } else { view->eventFunc(view, event); } @@ -444,7 +448,7 @@ puglDispatchEvent(PuglView* view, const PuglEvent* event) break; case PUGL_EXPOSE: view->backend->enter(view, &event->expose); - view->eventFunc(view, event); + puglDispatchEventInContext(view, event); view->backend->leave(view, &event->expose); break; default: |