[vlc-commits] qt: track the mouse movement on Windows as well

Steve Lhomme git at videolan.org
Thu Apr 4 12:30:55 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr  4 11:23:42 2019 +0200| [08f886b6e88f46ebeb1cfb2bc838c6fec8c81dfc] | committer: Steve Lhomme

qt: track the mouse movement on Windows as well

So the display modules don't have to handle the mouse hiding anymore.

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

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

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 1002f6e237..4a01118fed 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -135,7 +135,7 @@ void VideoWidget::request( struct vout_window_t *p_wnd )
        management */
     /* This is currently disabled on X11 as it does not seem to improve
      * performance, but causes the video widget to be transparent... */
-#if !defined (QT5_HAS_X11)
+#if !defined (QT5_HAS_X11) && !defined(_WIN32)
     stable->setAttribute( Qt::WA_PaintOnScreen, true );
 #else
     stable->setMouseTracking( true );



More information about the vlc-commits mailing list