aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.h
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/implementation.h
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/implementation.h')
-rw-r--r--pugl/detail/implementation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pugl/detail/implementation.h b/pugl/detail/implementation.h
index 2ad3f65..bcecd85 100644
--- a/pugl/detail/implementation.h
+++ b/pugl/detail/implementation.h
@@ -54,6 +54,9 @@ uint32_t puglDecodeUTF8(const uint8_t* buf);
/** Dispatch an event with a simple `type` to `view`. */
void puglDispatchSimpleEvent(PuglView* view, PuglEventType type);
+/** Dispatch `event` to `view` while already in the graphics context. */
+void puglDispatchEventInContext(PuglView* view, const PuglEvent* event);
+
/** Dispatch `event` to `view`, entering graphics context if necessary. */
void puglDispatchEvent(PuglView* view, const PuglEvent* event);