aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-01 11:18:37 +0100
committerDavid Robillard <d@drobilla.net>2020-03-01 20:32:25 +0100
commitd7f0b78c32bc8da9461b8abed8722d15ddb0360a (patch)
tree226ca9487285b8f90577c31113960f7addfe393e /pugl/pugl.h
parent56bdfc8c7827cfc2ebf151553a23bdeea55883a6 (diff)
downloadpugl-d7f0b78c32bc8da9461b8abed8722d15ddb0360a.tar.gz
pugl-d7f0b78c32bc8da9461b8abed8722d15ddb0360a.tar.bz2
pugl-d7f0b78c32bc8da9461b8abed8722d15ddb0360a.zip
Put PuglEventAny member of PuglEvent first for easy initialization
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 0bd8b47..b5b6d25 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -411,8 +411,8 @@ typedef struct {
either be cast to the appropriate type, or the union members used.
*/
typedef union {
- PuglEventType type; ///< Event type
PuglEventAny any; ///< Valid for all event types
+ PuglEventType type; ///< Event type
PuglEventButton button; ///< PUGL_BUTTON_PRESS, PUGL_BUTTON_RELEASE
PuglEventConfigure configure; ///< PUGL_CONFIGURE
PuglEventExpose expose; ///< PUGL_EXPOSE