Commit e39bc8a5 authored by Lukas Durfina's avatar Lukas Durfina Committed by Jean-Baptiste Kempf

Fix of showing FS controller when it is slowly hidding

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2aa6ed9b
...@@ -975,7 +975,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -975,7 +975,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
#endif #endif
#if HAVE_TRANSPARENCY #if HAVE_TRANSPARENCY
setWindowOpacity( 0.75 ); setWindowOpacity( DEFAULT_OPACITY );
#endif #endif
} }
else if ( type == FullscreenControlHide_Type ) else if ( type == FullscreenControlHide_Type )
...@@ -1122,7 +1122,7 @@ static int showFullscreenControllCallback( vlc_object_t *vlc_object, const char ...@@ -1122,7 +1122,7 @@ static int showFullscreenControllCallback( vlc_object_t *vlc_object, const char
{ {
FullscreenControllerWidget *p_fs = (FullscreenControllerWidget *) data; FullscreenControllerWidget *p_fs = (FullscreenControllerWidget *) data;
if ( p_fs->isFSCHidden() ) if ( p_fs->isFSCHidden() || p_fs->windowOpacity() < DEFAULT_OPACITY )
{ {
IMEvent *event = new IMEvent( FullscreenControlShow_Type, 0 ); IMEvent *event = new IMEvent( FullscreenControlShow_Type, 0 );
QApplication::postEvent( p_fs, static_cast<QEvent *>(event) ); QApplication::postEvent( p_fs, static_cast<QEvent *>(event) );
......
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
#define HAVE_TRANSPARENCY 1 #define HAVE_TRANSPARENCY 1
#endif #endif
/* Default value of opacity for FS controller */
#define DEFAULT_OPACITY 0.75
class ResizeEvent; class ResizeEvent;
class QPalette; class QPalette;
class QPixmap; class QPixmap;
......
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