[vlc-devel] [PATCH 13/14] qt: fix frameless window for Win7 compositor

Pierre Lamot pierre at videolabs.io
Thu Oct 22 15:14:25 CEST 2020


---
 modules/gui/qt/maininterface/compositor_win7.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/maininterface/compositor_win7.cpp b/modules/gui/qt/maininterface/compositor_win7.cpp
index 7a262ad60e..8f8444e025 100644
--- a/modules/gui/qt/maininterface/compositor_win7.cpp
+++ b/modules/gui/qt/maininterface/compositor_win7.cpp
@@ -182,6 +182,8 @@ MainInterface* CompositorWin7::makeMainInterface()
     m_qmlView->setColor(QColor(Qt::transparent));
     m_qmlView->setGeometry(m_rootWindow->geometry());
     m_qmlView->setMinimumSize( m_rootWindow->minimumSize() );
+    if (m_rootWindow->useClientSideDecoration())
+        m_qmlView->setFlag(Qt::FramelessWindowHint);
 
     m_qmlView->installEventFilter(this);
     Win7NativeEventFilter* m_nativeEventFilter = new Win7NativeEventFilter(this);
-- 
2.25.1



More information about the vlc-devel mailing list