[vlc-commits] Qt4: Fix FSController glitches on Linux/KDE

Ludovic Fauvet git at videolan.org
Tue Mar 29 09:30:17 CEST 2011


vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Mar 28 15:45:50 2011 +0200| [ffe7367b1672ec72705ec4cb440758ec0c869230] | committer: Jean-Baptiste Kempf

Qt4: Fix FSController glitches on Linux/KDE

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/controller.cpp |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index c3775a3..abbe9bd 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -43,6 +43,7 @@
 #include <QSpacerItem>
 #include <QToolButton>
 #include <QHBoxLayout>
+#include <QRegion>
 #include <QSignalMapper>
 #include <QTimer>
 
@@ -649,7 +650,12 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
 
     vout.clear();
 
+#ifdef Q_WS_X11
+    setWindowFlags( Qt::Window | Qt::FramelessWindowHint );
+    setWindowModality( Qt::ApplicationModal );
+#else
     setWindowFlags( Qt::ToolTip );
+#endif
     setMinimumWidth( 600 );
 
     setFrameShape( QFrame::StyledPanel );
@@ -748,6 +754,11 @@ void FullscreenControllerWidget::showFSC()
     setWindowOpacity( var_InheritFloat( p_intf, "qt-fs-opacity" )  );
 #endif
 
+#ifdef Q_WS_X11
+    // Tell kwin that we do not want a shadow around the fscontroller
+    setMask( QRegion( 0, 0, width(), height() ) );
+#endif
+
     show();
 }
 



More information about the vlc-commits mailing list