d3d11videosink: Fix for unhandled mouse double click events
authorSeungha Yang <seungha@centricular.com>
Fri, 22 Apr 2022 19:00:21 +0000 (04:00 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 23 Apr 2022 13:20:54 +0000 (13:20 +0000)
commit9f19ca68b30713b6dc155adfce01324ed51d5562
tree9545598717ae7675de679774b2d34721d2abbfcd
parent3391a7d4998f301a2d1f5b255adf7a8d9b32ebb6
d3d11videosink: Fix for unhandled mouse double click events

Only window created with CS_DBLCLKS style can receive those mouse
double click events, so we need to use the style for internal/external
windows can get double click events.

Also, passthrough mouse events to parent window in the same message pumping
threads instead of manually forwarding each mouse event.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1172
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2277>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp