diff options
author | David Robillard <d@drobilla.net> | 2016-08-31 18:11:48 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-31 18:11:48 -0400 |
commit | 156d9f03f26b4dd85dc75f652fb370b07bc2dab7 (patch) | |
tree | 3b27501b42cd0ba4d16bbf508acbebe2c963bffa /pugl/pugl_win.cpp | |
parent | 80510efead3512766d798d29fbfb66ea5646a249 (diff) | |
download | pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.tar.gz pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.tar.bz2 pugl-156d9f03f26b4dd85dc75f652fb370b07bc2dab7.zip |
Replace send_event with extensible flags
This is currently functionally equivalent, but taking up space in the
event struct for a single bool which could be used for 32 flags for any
number of things that might show up in the future seems like a very bad
idea.
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r-- | pugl/pugl_win.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 1b303db..b834143 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -469,9 +469,11 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) memset(&event, 0, sizeof(event)); - event.any.type = PUGL_NOTHING; - event.any.view = view; - event.any.send_event = InSendMessageEx(dummy_ptr); + event.any.type = PUGL_NOTHING; + event.any.view = view; + if (InSendMessageEx(dummy_ptr)) { + event.any.flags |= PUGL_IS_SEND_EVENT; + } setModifiers(view); switch (message) { |