mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +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,7 +536,13 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return DefWindowProc (hWnd, uMsg, wParam, lParam);
|
{
|
||||||
|
/* 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;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue