glwindow/win32: Chain up mouse event to parent window

Fix a regression of the commit 940c9998e5

Unlike key event, mouse event will not be chained up to parent window
by DefWindowProc

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/718>
This commit is contained in:
Seungha Yang 2020-06-22 19:35:57 +09:00 committed by GStreamer Merge Bot
parent fddd7df2d3
commit 220f2dd3c7

View file

@ -566,6 +566,9 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_MBUTTONUP:
case WM_MOUSEMOVE:
gst_gl_window_win32_handle_mouse_event (window, uMsg, lParam);
/* DefWindowProc will not chain up mouse event to parent window */
if (window_win32->parent_win_id)
PostMessage (window_win32->parent_win_id, uMsg, wParam, lParam);
ret = DefWindowProc (hWnd, uMsg, wParam, lParam);
break;
default: