diff options
author | David Robillard <d@drobilla.net> | 2021-05-08 13:42:37 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-08 14:29:42 -0400 |
commit | fcce346e6787875e6526efea89e74055e447f889 (patch) | |
tree | 3fa0589c678e1142bfa9a42ef939ae43c92d0e78 /src/implementation.h | |
parent | 17ad5fd72bd51c5324b8e52e1f55020d5a97944a (diff) | |
download | pugl-fcce346e6787875e6526efea89e74055e447f889.tar.gz pugl-fcce346e6787875e6526efea89e74055e447f889.tar.bz2 pugl-fcce346e6787875e6526efea89e74055e447f889.zip |
Send unmap/map events when the view is minimized/restored
X11 Window managers set WM_STATE to notify about minimization, often without
sending core X visibility events (which seems odd to me, but that's what Gnome
does anyway). So, implement this protocol and send map/unmap events to the
view, and adjust the Windows implementation to do the same for consistency
across all platforms.
Diffstat (limited to 'src/implementation.h')
-rw-r--r-- | src/implementation.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/implementation.h b/src/implementation.h index 8c5398c..936322d 100644 --- a/src/implementation.h +++ b/src/implementation.h @@ -58,9 +58,13 @@ puglDecodeUTF8(const uint8_t* buf); void puglDispatchSimpleEvent(PuglView* view, PuglEventType type); -/// Dispatch `event` to `view` while already in the graphics context +/// Process configure event while already in the graphics context void -puglDispatchEventInContext(PuglView* view, const PuglEvent* event); +puglConfigure(PuglView* view, const PuglEvent* event); + +/// Process expose event while already in the graphics context +void +puglExpose(PuglView* view, const PuglEvent* event); /// Dispatch `event` to `view`, entering graphics context if necessary void |