Commit 33004ba7 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

Qt4: Fix FSController glitches on Linux/KDE

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit ffe7367b1672ec72705ec4cb440758ec0c869230)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e300731c
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <QSpacerItem> #include <QSpacerItem>
#include <QToolButton> #include <QToolButton>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QRegion>
#include <QSignalMapper> #include <QSignalMapper>
#include <QTimer> #include <QTimer>
...@@ -648,7 +649,12 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi ...@@ -648,7 +649,12 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
vout.clear(); vout.clear();
#ifdef Q_WS_X11
setWindowFlags( Qt::Window | Qt::FramelessWindowHint );
setWindowModality( Qt::ApplicationModal );
#else
setWindowFlags( Qt::ToolTip ); setWindowFlags( Qt::ToolTip );
#endif
setMinimumWidth( 600 ); setMinimumWidth( 600 );
setFrameShape( QFrame::StyledPanel ); setFrameShape( QFrame::StyledPanel );
...@@ -747,6 +753,11 @@ void FullscreenControllerWidget::showFSC() ...@@ -747,6 +753,11 @@ void FullscreenControllerWidget::showFSC()
setWindowOpacity( var_InheritFloat( p_intf, "qt-fs-opacity" ) ); setWindowOpacity( var_InheritFloat( p_intf, "qt-fs-opacity" ) );
#endif #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(); show();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment