mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
d3d11window_win32: Chain up mouse event to parent window
Unlike key event, mouse event will not be chained up to parent window by DefWindowProc Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1361>
This commit is contained in:
parent
9042062072
commit
863c663b1d
1 changed files with 7 additions and 1 deletions
|
@ -600,7 +600,13 @@ gst_d3d11_window_win32_handle_window_proc (GstD3D11WindowWin32 * self,
|
||||||
case WM_MBUTTONDOWN:
|
case WM_MBUTTONDOWN:
|
||||||
case WM_MBUTTONUP:
|
case WM_MBUTTONUP:
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
gst_d3d11_window_win32_on_mouse_event (self, hWnd, uMsg, wParam, lParam);
|
/* To handle mouse event only once, do this only for internal window */
|
||||||
|
if (self->internal_hwnd && self->internal_hwnd == hWnd)
|
||||||
|
gst_d3d11_window_win32_on_mouse_event (self, hWnd, uMsg, wParam, lParam);
|
||||||
|
|
||||||
|
/* DefWindowProc will not chain up mouse event to parent window */
|
||||||
|
if (self->external_hwnd && self->external_hwnd != hWnd)
|
||||||
|
SendMessage (self->external_hwnd, uMsg, wParam, lParam);
|
||||||
break;
|
break;
|
||||||
case WM_SYSKEYDOWN:
|
case WM_SYSKEYDOWN:
|
||||||
if ((window->fullscreen_toggle_mode &
|
if ((window->fullscreen_toggle_mode &
|
||||||
|
|
Loading…
Reference in a new issue