mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
[319/906] [win32 backend] fix transmition message to the parent.
The Qt mouvexoverlay example shows how to rotate the cube by moving (+click) the mouve over a qwidget using xoverlay interface.
This commit is contained in:
parent
dbdc0fb9eb
commit
8a77e2d859
1 changed files with 7 additions and 1 deletions
|
@ -536,8 +536,14 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
return TRUE;
|
||||
|
||||
default:
|
||||
{
|
||||
/* transmit messages to the parrent (ex: mouse/keyboard input) */
|
||||
HWND parent_id = GetProp (hWnd, "gl_window_parent_id");
|
||||
if (parent_id)
|
||||
PostMessage (parent_id, uMsg, wParam, lParam);
|
||||
return DefWindowProc (hWnd, uMsg, wParam, lParam);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue