aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 23:35:11 +0200
committerDavid Robillard <d@drobilla.net>2019-07-23 20:28:56 +0200
commit9ca94acb7afc6812975af80afcaeff13a65a009f (patch)
tree5506d4ccde235e29432471cdc0b7956c9d2787fe /pugl/pugl_win.c
parentb47bfc5f1fba8d3e5295e11f1add8665c423cc4d (diff)
downloadpugl-9ca94acb7afc6812975af80afcaeff13a65a009f.tar.gz
pugl-9ca94acb7afc6812975af80afcaeff13a65a009f.tar.bz2
pugl-9ca94acb7afc6812975af80afcaeff13a65a009f.zip
Windows: Use DispatchMessage
Unlike on other platforms, PeekMessage can return messages for windows other than the given parameter (namely children). Unfortunately it doesn't seem possible to implement this function on Windows to work exactly like on the other platforms, but using DispatchMessage will at least dispatch them accordingly.
Diffstat (limited to 'pugl/pugl_win.c')
-rw-r--r--pugl/pugl_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_win.c b/pugl/pugl_win.c
index a5cb6cc..0e378eb 100644
--- a/pugl/pugl_win.c
+++ b/pugl/pugl_win.c
@@ -839,7 +839,7 @@ puglProcessEvents(PuglView* view)
MSG msg;
while (PeekMessage(&msg, view->impl->hwnd, 0, 0, PM_REMOVE)) {
TranslateMessage(&msg);
- handleMessage(view, msg.message, msg.wParam, msg.lParam);
+ DispatchMessage(&msg);
}
return PUGL_SUCCESS;