aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-16 17:34:29 +0100
committerDavid Robillard <d@drobilla.net>2014-12-16 18:31:28 -0500
commit77e91c76270156b63bbc539e6501f1cefb32066d (patch)
tree669e961e98598d30c468a30c216cbc4ee0e31afc
parent5a28f319f94f4329f750394e037a7df18ce98e73 (diff)
downloadpugl-77e91c76270156b63bbc539e6501f1cefb32066d.tar.gz
pugl-77e91c76270156b63bbc539e6501f1cefb32066d.tar.bz2
pugl-77e91c76270156b63bbc539e6501f1cefb32066d.zip
Only handle Windows events for the view window.
Conflicts: pugl/pugl_win.cpp
-rw-r--r--pugl/pugl_win.cpp2
1 files changed, 1 insertions, 1 deletions
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);