From 9ca94acb7afc6812975af80afcaeff13a65a009f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Jul 2019 23:35:11 +0200 Subject: 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. --- pugl/pugl_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1