summaryrefslogtreecommitdiff
path: root/pugl/pugl_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_win.cpp')
-rw-r--r--pugl/pugl_win.cpp8
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) {