diff options
Diffstat (limited to 'pugl/detail')
-rw-r--r-- | pugl/detail/x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 486e83b..7b83b38 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -814,10 +814,10 @@ puglDispatchEvents(PuglWorld* world) PuglEvent* const expose = &view->impl->pendingExpose; if (configure->type || expose->type) { - view->backend->enter(view, &expose->expose); + view->backend->enter(view, expose->type ? &expose->expose : NULL); view->eventFunc(view, configure); view->eventFunc(view, expose); - view->backend->leave(view, &expose->expose); + view->backend->leave(view, expose->type ? &expose->expose : NULL); configure->type = 0; expose->type = 0; |