vlc | branch: master | Steve Lhomme <[email protected]> | Sat Apr  6 16:31:36 
2019 +0200| [456b3d93e38f83eea1b38b8a5a5d760c301130f8] | committer: Steve Lhomme

qt: do not activate the natively painted Window

On Windows it means returning MA_NOACTIVATE on WM_MOUSEACTIVATE, so that the
HWND were we draw the video doesn't receive the mouse pressed events.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=456b3d93e38f83eea1b38b8a5a5d760c301130f8
---

 modules/gui/qt/components/interface_widgets.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/components/interface_widgets.cpp 
b/modules/gui/qt/components/interface_widgets.cpp
index 8370d8b3f3..e6a3218477 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -142,6 +142,8 @@ void VideoWidget::request( struct vout_window_t *p_wnd )
     stable->setAttribute( Qt::WA_PaintOnScreen, true );
     stable->setMouseTracking( true );
     setMouseTracking( true );
+    stable->setWindowFlags( Qt::Tool | Qt::FramelessWindowHint | 
Qt::WindowDoesNotAcceptFocus );
+    stable->setAttribute( Qt::WA_ShowWithoutActivating );
 #else
     stable->setAttribute( Qt::WA_PaintOnScreen, true );
 #endif

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to