From 77e91c76270156b63bbc539e6501f1cefb32066d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 16 Nov 2014 17:34:29 +0100 Subject: Only handle Windows events for the view window. Conflicts: pugl/pugl_win.cpp --- pugl/pugl_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index ad386fb..32ca6fb 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -459,7 +459,7 @@ wndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_DESTROY: return 0; default: - if (view) { + if (view && hwnd == view->impl->hwnd) { return handleMessage(view, message, wParam, lParam); } else { return DefWindowProc(hwnd, message, wParam, lParam); -- cgit v1.2.3