Commit d3c77e33 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt, fsc: fix opacity when mouseover

And close #4542
parent 02f89b75
......@@ -743,6 +743,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i, QWi
#if HAVE_TRANSPARENCY
p_slowHideTimer = new QTimer( this );
CONNECT( p_slowHideTimer, timeout(), this, slowHideFSC() );
f_opacity = var_InheritFloat( p_intf, "qt-fs-opacity" )
#endif
vlc_mutex_init_recursive( &lock );
......@@ -811,7 +812,7 @@ void FullscreenControllerWidget::showFSC()
}
#if HAVE_TRANSPARENCY
setWindowOpacity( var_InheritFloat( p_intf, "qt-fs-opacity" ) );
setWindowOpacity( f_opacity );
#endif
#ifdef Q_WS_X11
......@@ -972,7 +973,7 @@ void FullscreenControllerWidget::enterEvent( QEvent *event )
p_hideTimer->stop();
#if HAVE_TRANSPARENCY
p_slowHideTimer->stop();
setWindowOpacity( DEFAULT_OPACITY );
setWindowOpacity( f_opacity );
#endif
event->accept();
}
......
......@@ -278,6 +278,7 @@ private:
QTimer *p_slowHideTimer;
bool b_slow_hide_begin;
int i_slow_hide_timeout;
float f_opacity;
#endif
int i_mouse_last_x, i_mouse_last_y;
......
Supports Markdown
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