aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-16 16:13:50 +0100
committerDavid Robillard <d@drobilla.net>2020-03-16 16:13:50 +0100
commit67b7970697011bbd26fbf4175eb2e5ebd1b00939 (patch)
tree4c76fdb48e2280b3caa81b3647b3ea22989b7e12 /pugl/detail/x11.c
parentab7df6c8f3dfd820331ef96c217c0fc477972835 (diff)
downloadpugl-67b7970697011bbd26fbf4175eb2e5ebd1b00939.tar.gz
pugl-67b7970697011bbd26fbf4175eb2e5ebd1b00939.tar.bz2
pugl-67b7970697011bbd26fbf4175eb2e5ebd1b00939.zip
Factor out dispatching configure events in the drawing context
The updates here need to happen whenever a configure is dispatched, even outside puglDispatchEvent(). This removes the last remaining direct calls to the event callback so the common implementation can always do the right thing.
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r--pugl/detail/x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 5fc769d..72dcf59 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -755,8 +755,8 @@ flushExposures(PuglWorld* world)
if (configure->type || expose->type) {
view->backend->enter(view, expose->type ? &expose->expose : NULL);
- view->eventFunc(view, configure);
- view->eventFunc(view, expose);
+ puglDispatchEventInContext(view, configure);
+ puglDispatchEventInContext(view, expose);
view->backend->leave(view, expose->type ? &expose->expose : NULL);
configure->type = 0;