mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
fddd7df2d3
commit
220f2dd3c7
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue