From 156d9f03f26b4dd85dc75f652fb370b07bc2dab7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 31 Aug 2016 18:11:48 -0400 Subject: 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. --- pugl/pugl_win.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pugl/pugl_win.cpp') 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) { -- cgit v1.2.1