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 )
#endif
#if HAVE_TRANSPARENCY
setWindowOpacity( 0.75 );
setWindowOpacity( DEFAULT_OPACITY );
#endif
}
else if ( type == FullscreenControlHide_Type )
......@@ -1122,7 +1122,7 @@ static int showFullscreenControllCallback( vlc_object_t *vlc_object, const char
{
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 );
QApplication::postEvent( p_fs, static_cast<QEvent *>(event) );
......
......@@ -57,6 +57,9 @@
#define HAVE_TRANSPARENCY 1
#endif
/* Default value of opacity for FS controller */
#define DEFAULT_OPACITY 0.75
class ResizeEvent;
class QPalette;
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